Skip to content

Instantly share code, notes, and snippets.

@rickyalmeidadev
Created February 15, 2022 20:10
Show Gist options
  • Save rickyalmeidadev/b836be648f66452ab08d38fda396d3d5 to your computer and use it in GitHub Desktop.
Save rickyalmeidadev/b836be648f66452ab08d38fda396d3d5 to your computer and use it in GitHub Desktop.
SWC's transform configuration for Jest
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