blog/total-guide-to-jest-esm-and-angular #11
Replies: 5 comments 3 replies
-
|
From angular 16, ngcc was removed. Should we still using jest-preset-angular or there is a better way? |
Beta Was this translation helpful? Give feedback.
-
|
I am using angular version 16, which by default have under @angular/cdk only fesm2022. Should down-leveling to fesm2015 would work out of the box If there is no fesm2015 under my @angular/cdk directory? |
Beta Was this translation helpful? Give feedback.
-
|
Would highly appreciate an update to this blog, relevant to Angular 18 and Nx. |
Beta Was this translation helpful? Give feedback.
-
|
It is worth mentioning the downsides of this migration. They're well described here
Overall I don't fully understand why you mention the speed increase. You have to process all your ESM to CJS and by default you're using cache. So you process only once and there should be no noticable performance increase. |
Beta Was this translation helpful? Give feedback.
-
|
From my experience - I tried it, fixed all jest.mock, interops e.t.c. Unfortunately I see that the memory of nodejs keeps growing until it crashes with OOM. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
blog/total-guide-to-jest-esm-and-angular
Let's learn how to speed up our Angular Jest tests by more than 100% by switching to Jest ESM (a notoriously problematic migration) and how to solve all the troublesome issues that tend to pop up along the way!
https://angularexperts.io/blog/total-guide-to-jest-esm-and-angular
Beta Was this translation helpful? Give feedback.
All reactions