Skip to content

Commit

Permalink
fix(jest): fix esm support issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Sep 28, 2023
1 parent 065c45a commit 3509f07
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/jest/src/jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@ export default async function jestConfig(resolve: Function, rootDir: string): Pr

if (overrides) {
const supportedKeys: (keyof Jest.Config)[] = [
'preset',
/**
* ESM Support
* https://kulshekhar.github.io/ts-jest/docs/guides/esm-support/
*/
'extensionsToTreatAsEsm',
/**
* https://www.npmjs.com/package/jest-node-exports-resolver
* This is heavily discussed in the following [issue #9771](https://github.com/facebook/jest/issues/9771).
Expand Down

0 comments on commit 3509f07

Please sign in to comment.