Skip to content

Commit

Permalink
test: Remove erroneous warning diagnostic
Browse files Browse the repository at this point in the history
The module value in tsconfig is like `esnext` and erroneously triggers a diagnostic warning, as
shown in this issue: kulshekhar/ts-jest#748
  • Loading branch information
owennw committed Nov 5, 2018
1 parent 053f89c commit a35f429
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions jest.config.js
@@ -1,3 +1,13 @@
// Module value in tsconfig is like `esnext` and erroneously triggers a diagnostic warning
// https://github.com/kulshekhar/ts-jest/issues/748
const tsJestIgnore = {
'ts-jest': {
diagnostics: {
ignoreCodes: [151001],
},
},
}

module.exports = {
roots: [
'<rootDir>/src'
Expand All @@ -7,4 +17,7 @@ module.exports = {
},
testRegex: '(/__tests__/.*|(\\.|/)test)\\.ts?$',
moduleFileExtensions: ['ts', 'js'],
globals: {
...tsJestIgnore,
},
}

0 comments on commit a35f429

Please sign in to comment.