Skip to content

Commit

Permalink
test: update jest config to support the new jsx transform
Browse files Browse the repository at this point in the history
  • Loading branch information
sungik-choi committed Dec 13, 2024
1 parent db38f89 commit 3da104c
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion packages/bezier-react/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,18 @@ module.exports = {
setupFilesAfterEnv: ['<rootDir>/jest.setup.ts'],
transformIgnorePatterns: [],
transform: {
'^.+\\.[t|j]sx?$': ['@swc/jest'],
'^.+\\.[t|j]sx?$': [
'@swc/jest',
{
jsc: {
transform: {
react: {
runtime: 'automatic',
},
},
},
},
],
},
testMatch: ['**/*.test.(ts|tsx)'],
moduleNameMapper: {
Expand Down

0 comments on commit 3da104c

Please sign in to comment.