From f1ba18676406f0a3a8a7bff45272343e8b2fd5f4 Mon Sep 17 00:00:00 2001 From: cexbrayat Date: Thu, 11 Jul 2019 08:46:17 +0200 Subject: [PATCH] feat(@schematic/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). --- .../angular/application/files/tsconfig.spec.json.template | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/schematics/angular/application/files/tsconfig.spec.json.template b/packages/schematics/angular/application/files/tsconfig.spec.json.template index 72aa864c8732..df547643751e 100644 --- a/packages/schematics/angular/application/files/tsconfig.spec.json.template +++ b/packages/schematics/angular/application/files/tsconfig.spec.json.template @@ -14,5 +14,8 @@ "include": [ "src/**/*.spec.ts", "src/**/*.d.ts" - ] + ]<% if (enableIvy) { %>, + "angularCompilerOptions": { + "enableIvy": true + }<% } %> }