Closed sod closed 1 year ago
@sod Is there an Angular project that is using @swc-node/jest? Could you provide a link?
@lamelyan, I stumbled upon @sod's example repo for this. It does not include Zone.js yet.
I gonna close as won't do. I have no time right now to contribute a PR.
We don't use this package, but we use jest & angular and maybe you are interested.
We replaced ts-jest with @swc-node/jest. Cold cache
jest
went from 60s to 7s.swc is a typescript to javascript compiler that also supports annotations & metadata export, thus works with angular jit. swc is written in rust and is ~70x faster as typescript. So by using it you eliminate the compile overhead and are mostly left running the tests themself.
using swc-jest as a jest transformer is pretty straight forward, this is our transform block in
jest.config.js