How to get debugging working when using @swc/jest? #2769
Answered
by
hisomura
caveman-dick
asked this question in
Q&A
-
I have been trying for quite a bit today but I just can't figure out how to debug through my tests and code, is there something I need to do to enable debugging, or is it just not supported? I know debugging is working as I can stop on the SWC js code, just not on my typescript code. Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
hisomura
Nov 18, 2021
Replies: 2 comments 1 reply
-
You should use |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
caveman-dick
-
The problem seems to be happening only with .spec.ts file, or any file that contains a .something.ts |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You should use
souceMaps: "inline"
In .swcrc or jest.config.jshttps://swc.rs/docs/configuration/compilation#sourcemaps