2023-09-12 21:11:03 +02:00
|
|
|
/** @type {import('jest').Config} */
|
|
|
|
|
|
|
|
const config = {
|
2023-12-28 21:58:08 +00:00
|
|
|
moduleFileExtensions: ['js', 'json', 'ts'],
|
|
|
|
rootDir: 'src',
|
|
|
|
testRegex: '.\\.test\\.ts$',
|
|
|
|
transform: {
|
|
|
|
'^.+\\.(t|j)s$': 'ts-jest',
|
|
|
|
},
|
|
|
|
collectCoverageFrom: ['**/*.(t|j)s'],
|
|
|
|
coverageDirectory: '../coverage',
|
|
|
|
testEnvironment: 'node',
|
2023-09-12 21:11:03 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
module.exports = config;
|