Skip to content

Commit 21f53f1

Browse files
committed
create centralized jest config
1 parent 05504b3 commit 21f53f1

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

jest.config.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
module.exports = {
2+
rootDir: process.cwd(),
3+
collectCoverage: true,
4+
transform: {
5+
'^.+\\.ts$': 'ts-jest',
6+
},
7+
moduleFileExtensions: ['js', 'ts'],
8+
testEnvironment: 'node',
9+
testMatch: ['<rootDir>/**/*.test.ts'],
10+
globals: {
11+
'ts-jest': {
12+
tsconfig: '<rootDir>/tsconfig.test.json',
13+
diagnostics: false,
14+
},
15+
},
16+
};

0 commit comments

Comments
 (0)