We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd06190 commit ca32c89Copy full SHA for ca32c89
src/config/jest.config.js
@@ -47,7 +47,7 @@ const jestConfig = {
47
globals: {},
48
}
49
50
-if (hasAnyDep('ts-jest')) {
+if (hasAnyDep('ts-jest') || hasFile('tsconfig.json')) {
51
jestConfig.preset = 'ts-jest/presets/js-with-ts'
52
jestConfig.globals['ts-jest'] = {
53
diagnostics: {
tsconfig.json
@@ -1,3 +1,6 @@
1
{
2
- "extends": "./dist/config/tsconfig"
+ "extends": "./dist/config/tsconfig",
3
+ "compilerOptions": {
4
+ "allowJs": true
5
+ }
6
0 commit comments