Skip to content

Commit c875852

Browse files
committed
suppress ts-jest warning
1 parent 13b51c0 commit c875852

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

jest/jest.config.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ module.exports = {
33
rootDir: process.cwd(),
44
collectCoverage: true,
55
transform: {
6-
'^.+\\.ts$': 'ts-jest',
7-
'^.+\\.tsx$': 'ts-jest',
6+
'^.+\\.(ts|tsx)$': 'ts-jest',
87
},
98
coverageDirectory: '<rootDir>/coverage',
109
moduleFileExtensions: ['js', 'ts', 'tsx'],
@@ -15,6 +14,10 @@ module.exports = {
1514
globals: {
1615
'ts-jest': {
1716
tsconfig: '<rootDir>/tsconfig.test.json',
17+
diagnostics: {
18+
// Ignore this warning for tests, we do not care about this
19+
ignoreCodes: ['TS151001'],
20+
},
1821
},
1922
__DEBUG_BUILD__: true,
2023
},

0 commit comments

Comments
 (0)