Skip to content

Commit 9d4d574

Browse files
cexbrayatmgechev
authored andcommitted
feat(@schematics/angular): enable ivy in tests (#15044)
If a project is generated with `enableIvy`, this commit adds the necessary configuration to `tsconfig.spec.json` to then run the tests with Ivy. Note that the CLI already does the correct work (runs `ngcc` and then runs the tests).
1 parent 8d7ab42 commit 9d4d574

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/schematics/angular/application/files/tsconfig.spec.json.template

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,8 @@
1414
"include": [
1515
"src/**/*.spec.ts",
1616
"src/**/*.d.ts"
17-
]
17+
]<% if (enableIvy) { %>,
18+
"angularCompilerOptions": {
19+
"enableIvy": true
20+
}<% } %>
1821
}

0 commit comments

Comments
 (0)