set up jest
This commit is contained in:
parent
7a54de2d48
commit
acf0530555
|
@ -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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
|
@ -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,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
};
|
|
Loading…
Reference in New Issue