File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -3,10 +3,14 @@ import { pathsToModuleNameMapper } from 'ts-jest';
3
3
4
4
import { compilerOptions } from './tsconfig.test.json' ;
5
5
6
+ import { jsWithTs as jsWithTsPreset } from 'ts-jest/presets' ;
7
+
6
8
export default async ( ) : Promise < Config . InitialOptions > => {
9
+ console . log ( jsWithTsPreset ) ;
10
+
7
11
return {
12
+ ...jsWithTsPreset ,
8
13
verbose : true ,
9
- preset : 'ts-jest/presets/js-with-ts' , // needed when import worker.js
10
14
globals : {
11
15
'ts-jest' : {
12
16
tsconfig : '<rootDir>/tsconfig.test.json' ,
Original file line number Diff line number Diff line change 13
13
"types" : [" node" , " jest" ],
14
14
"noImplicitAny" : false ,
15
15
"noImplicitThis" : false ,
16
- "strictPropertyInitialization" : false
16
+ "strictPropertyInitialization" : false ,
17
+ "resolveJsonModule" : true ,
18
+ "allowJs" : true
17
19
}
18
20
}
You can’t perform that action at this time.
0 commit comments