Skip to content

Commit 8d73ed7

Browse files
committed
feat(config/jest): configure Jest to warn instead of fail on TypeScript errors
1 parent e4d54b3 commit 8d73ed7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/config/jest.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,17 @@ const jestConfig = {
4545
require.resolve('jest-watch-typeahead/filename'),
4646
require.resolve('jest-watch-typeahead/testname'),
4747
],
48+
globals: {},
4849
transform: {},
4950
}
5051

5152
if (hasAnyDep('ts-jest')) {
5253
jestConfig.preset = 'ts-jest'
54+
jestConfig.globals['ts-jest'] = {
55+
diagnostics: {
56+
warnOnly: true,
57+
},
58+
}
5359
}
5460

5561
if (hasFile('tests/setup-env.js')) {

0 commit comments

Comments
 (0)