Skip to content

Commit c917039

Browse files
committed
test
1 parent 3d8f272 commit c917039

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

packages/replay/jest.config.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,14 @@ import { pathsToModuleNameMapper } from 'ts-jest';
33

44
import { compilerOptions } from './tsconfig.test.json';
55

6+
import { jsWithTs as jsWithTsPreset } from 'ts-jest/presets';
7+
68
export 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',

packages/replay/tsconfig.test.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
"types": ["node", "jest"],
1414
"noImplicitAny": false,
1515
"noImplicitThis": false,
16-
"strictPropertyInitialization": false
16+
"strictPropertyInitialization": false,
17+
"resolveJsonModule": true,
18+
"allowJs": true
1719
}
1820
}

0 commit comments

Comments
 (0)