Created
February 15, 2022 20:10
-
-
Save rickyalmeidadev/b836be648f66452ab08d38fda396d3d5 to your computer and use it in GitHub Desktop.
SWC's transform configuration for Jest
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
transform: { | |
'^.+\\.(t|j)sx?$': [ | |
'@swc/jest', | |
{ | |
jsc: { | |
parser: { | |
syntax: 'ecmascript', | |
jsx: true, | |
}, | |
transform: { | |
react: { | |
runtime: 'automatic', | |
}, | |
}, | |
}, | |
}, | |
], | |
}, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment