Skip to content

Commit 54cfce0

Browse files
committed
chore: add jest-ts-webcompat-resolver to fix issues resolving .js files in jest
1 parent 8b18e19 commit 54cfce0

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

jest.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import type { Config } from '@jest/types';
33
const config: Config.InitialOptions = {
44
testEnvironment: 'node',
55
testRegex: '\\.test\\.ts$',
6+
resolver: 'jest-ts-webcompat-resolver',
67
collectCoverage: true,
78
coverageReporters: [['json', { file: 'report.json' }], 'lcov', 'text', 'text-summary', 'html'],
89
collectCoverageFrom: ['src/**/*.ts'],

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@
8383
"husky": "^7.0.4",
8484
"is-ci": "^3.0.1",
8585
"jest": "^27.3.1",
86+
"jest-ts-webcompat-resolver": "^1.0.0",
8687
"rimraf": "^3.0.2",
8788
"semantic-release": "^18.0.0",
8889
"ts-jest": "^27.0.7",

0 commit comments

Comments
 (0)