set up jest

This commit is contained in:
Matthieu Morin 2024-06-03 23:58:47 +02:00
parent 7a54de2d48
commit acf0530555
2 changed files with 15 additions and 15 deletions

15
jest.config.cjs Normal file
View File

@ -0,0 +1,15 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
testMatch: ['**/tests/**/*.spec.ts'],
collectCoverageFrom: [
'<rootDir>/src/**/*.ts',
'!<rootDir>/src/types/**/*.ts'
],
globals: {
'ts-jest': {
diagnostics: false,
isolatedModules: true
}
}
};

View File

@ -1,15 +0,0 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
testMatch: ['**/tests/**/*.spec.ts'],
collectCoverageFrom: [
'<rootDir>/src/**/*.ts',
'!<rootDir>/src/types/**/*.ts',
],
globals: {
'ts-jest': {
diagnostics: false,
isolatedModules: true,
},
},
};