Skip to content

Commit 17bf7ee

Browse files
committed
feat(@schematics/angular): enable ivy in tests
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 77f2af0 commit 17bf7ee

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)