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';
33
44import { compilerOptions } from './tsconfig.test.json' ;
55
6+ import { jsWithTs as jsWithTsPreset } from 'ts-jest/presets' ;
7+
68export default async ( ) : Promise < Config . InitialOptions > => {
9+ console . log ( jsWithTsPreset ) ;
10+
711 return {
12+ ...jsWithTsPreset ,
813 verbose : true ,
9- preset : 'ts-jest/presets/js-with-ts' , // needed when import worker.js
1014 globals : {
1115 'ts-jest' : {
1216 tsconfig : '<rootDir>/tsconfig.test.json' ,
Original file line number Diff line number Diff line change 1313 "types" : [" node" , " jest" ],
1414 "noImplicitAny" : false ,
1515 "noImplicitThis" : false ,
16- "strictPropertyInitialization" : false
16+ "strictPropertyInitialization" : false ,
17+ "resolveJsonModule" : true ,
18+ "allowJs" : true
1719 }
1820}
You can’t perform that action at this time.
0 commit comments