Skip to content

Commit

Permalink
fix: jest transform
Browse files Browse the repository at this point in the history
  • Loading branch information
tianenpang committed Nov 12, 2024
1 parent 393d8dc commit 8d753ff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ const config = {
},
},
transform: {
"^.+\\.(t|j)sx?$": "@swc-node/jest",
"^.+\\.(t|j)sx?$": "@swc/jest",
},
setupFilesAfterEnv: ["<rootDir>/setupTests.ts"],
extensionsToTreatAsEsm: [".ts"],
};

export default config;

0 comments on commit 8d753ff

Please sign in to comment.