Closed devjiwonchoi closed 1 year ago
For example, a well-known issue with node-fetch and jest.
node-fetch
jest
import http from 'node:http'; ^^^^^^ SyntaxError: Cannot use import statement outside a module
The general solution is to use webpack or babel, but I'd like to know if it'd be possible for @swc/jest can handle it also.
@swc/jest
Of course it's possible
@kdy1 If you don't mind, can you provide any docs or keywords I can look up to?
https://jestjs.io/docs/configuration#transformignorepatterns-arraystring
Thank you!
For example, a well-known issue with
node-fetch
andjest
.The general solution is to use webpack or babel, but I'd like to know if it'd be possible for
@swc/jest
can handle it also.