Skip to content

Commit 620c161

Browse files
Update jest.config.js
1 parent 185b81c commit 620c161

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎jest.config.js‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ module.exports = {
88
// ts-jest (already configured below) transforms it like any other .ts file.
99
moduleNameMapper: {
1010
'^@featbit/react-client-sdk$': '<rootDir>/node_modules/@featbit/react-client-sdk/src/index.ts',
11+
// Resolve ESM-style .js imports against the SDK's TypeScript source files.
12+
'^(\\.{1,2}/.*)\\.js$': '$1',
1113
},
1214
// The mapped path above still lives under node_modules, so it needs an
1315
// explicit carve-out from Jest's default "never transform node_modules" rule.

0 commit comments

Comments
 (0)