Skip to content

Commit

Permalink
add swc config
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-Cena committed May 17, 2022
1 parent d1c68f2 commit 266446f
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion jest.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,18 @@ export default {
'/packages/docusaurus-utils/src/index.ts',
],
transform: {
'^.+\\.[jt]sx?$': '@swc/jest',
'^.+\\.[jt]sx?$': [
'@swc/jest',
{
jsc: {
parser: {
syntax: 'typescript',
tsx: true,
},
target: 'es2020',
},
},
],
},
errorOnDeprecated: true,
reporters: ['default', 'github-actions'],
Expand Down

0 comments on commit 266446f

Please sign in to comment.