Skip to content

Commit becd2f5

Browse files
filipesilvamgechev
authored andcommitted
fix(@schematics/angular): use enableIvy as true
Blocked on angular/angular#28616
1 parent f03c44c commit becd2f5

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

packages/schematics/angular/application/files/root/tsconfig.app.json.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99
"**/*.spec.ts"
1010
]<% if (experimentalIvy) { %>,
1111
"angularCompilerOptions": {
12-
"enableIvy": "ngtsc"
12+
"enableIvy": true
1313
}<% } %>
1414
}

tests/legacy-cli/e2e/tests/experimental/ivy.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,17 @@
55
* Use of this source code is governed by an MIT-style license that can be
66
* found in the LICENSE file at https://angular.io/license
77
*/
8+
import { getGlobalVariable } from '../../utils/env';
89
import { request } from '../../utils/http';
910
import { killAllProcesses } from '../../utils/process';
1011
import { createProject, ngServe } from '../../utils/project';
1112

1213
export default async function() {
14+
const argv = getGlobalVariable('argv');
15+
if (!argv['ng-snapshots']) {
16+
// Only run this test on 8.x versions of Angular, which are currently only on snapshots.
17+
return;
18+
}
1319
try {
1420
await createProject('ivy-project', '--experimental-ivy');
1521

0 commit comments

Comments
 (0)