16 lines
335 B
JavaScript
16 lines
335 B
JavaScript
|
/** @type {import('jest').Config} */
|
||
|
|
||
|
const config = {
|
||
|
moduleFileExtensions: ['js', 'json', 'ts'],
|
||
|
rootDir: 'src',
|
||
|
testRegex: '.*\\.spec\\.ts$',
|
||
|
transform: {
|
||
|
'^.+\\.(t|j)s$': 'ts-jest',
|
||
|
},
|
||
|
collectCoverageFrom: ['**/*.(t|j)s'],
|
||
|
coverageDirectory: '../coverage',
|
||
|
testEnvironment: 'node',
|
||
|
};
|
||
|
|
||
|
module.exports = config;
|