17 lines
400 B
JavaScript
17 lines
400 B
JavaScript
/** @type {import('jest').Config} */
|
|
module.exports = {
|
|
preset: 'ts-jest',
|
|
testEnvironment: 'node',
|
|
roots: ['<rootDir>/src'],
|
|
testMatch: ['**/*.test.ts'],
|
|
transform: {
|
|
'^.+\\.ts$': ['ts-jest', {
|
|
tsconfig: {
|
|
// Relax strictness for test files — mocks won't perfectly satisfy production types
|
|
noUnusedLocals: false,
|
|
strict: false,
|
|
},
|
|
}],
|
|
},
|
|
};
|