Created
October 21, 2022 07:19
-
-
Save nschikora/932b2a0d865d91df8f661bec3fb6bf2c to your computer and use it in GitHub Desktop.
Jest transform swc config for decorators
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
transform: { | |
"^.+\\.[tj]sx?$": [ | |
"@swc/jest", | |
{ | |
jsc: { | |
parser: { | |
syntax: "typescript", | |
tsx: true, | |
decorators: true, | |
}, | |
transform: { | |
react: { | |
runtime: "automatic", | |
}, | |
legacyDecorator: true, | |
decoratorMetadata: true, | |
}, | |
target: "es2018", | |
}, | |
}, | |
], | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment