Enable Ivy in ng test #14547
Labels
area: docs
Related to the documentation
area: @schematics/angular
feature
Issue that requests a new feature
Milestone
🚀 Feature request
Command (mark with an
x
)Description
At the moment https://v8.angular.io/guide/ivy documents how to opt-in into Ivy for builds, however this doesn't document how to opt-in into Ivy for tests. The same thing applies when generating a new Ivy application via the CLI. Ivy is only enabled for builds.
Describe the solution you'd like
We should enable the Ivy compiler for tests as well, for both JIT and AOT mode, This is needed, because when enabling the
enableIvy
compiler option in JIT mode it will use process the packages withngcc
and will use the Ivy engine which also improves runtime speed in JIT mode.There are 2 ways that I can think of to achieve this. Either by adding
enableIvy: true
to the specs tsconfig, or the specs tsconfig extends the app tsconfig.The text was updated successfully, but these errors were encountered: