You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would be nice if we could use Jest with Angular AOT.
Motivation
JIT is barely ever used for years and is a very obscure mode that can cause issues that do not occur in real apps. AOT has been the default for nearly 10 major versions. Using AOT in Jest would improve testing environment by bringing it closer to the real life.
Example
No response
The text was updated successfully, but these errors were encountered:
AOT compilation speed has improved significantly over the years, so the speed improvements over JIT aren't that substantial. In the Angular CLI, JIT is currently used for unit tests but we are considering providing an option to use AOT. However, we first need to address a few questions, mainly concerning the correct semantics for writing tests and certain testing APIs that are JIT specific.
🚀 Feature Proposal
It looks like currently JIT compiler is hardcoded:
https://github.com/thymikee/jest-preset-angular/blob/main/src/compiler/ng-jest-compiler.ts#L63
I would be nice if we could use Jest with Angular AOT.
Motivation
JIT is barely ever used for years and is a very obscure mode that can cause issues that do not occur in real apps. AOT has been the default for nearly 10 major versions. Using AOT in Jest would improve testing environment by bringing it closer to the real life.
Example
No response
The text was updated successfully, but these errors were encountered: