Skip to content

Commit 9ce2b14

Browse files
committed
fixup! feat(@schematics/angular): drop polyfills.ts file from new
1 parent 301155e commit 9ce2b14

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed

packages/schematics/angular/application/files/src/test.ts.template

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// This file is required by karma.conf.js and loads recursively all the .spec and framework files
2+
import 'zone.js/testing';
23

34
import { getTestBed } from '@angular/core/testing';
45
import {

packages/schematics/angular/application/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ function addAppToWorkspaceFile(
211211
builder: Builders.Karma,
212212
options: {
213213
main: `${sourceRoot}/test.ts`,
214-
polyfills: ['zone.js', 'zone.js/testing'],
214+
polyfills: ['zone.js'],
215215
tsConfig: `${projectRoot}tsconfig.spec.json`,
216216
karmaConfig: `${projectRoot}karma.conf.js`,
217217
inlineStyleLanguage,

packages/schematics/angular/library/files/src/test.ts.template

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// This file is required by karma.conf.js and loads recursively all the .spec and framework files
2+
import 'zone.js/testing';
23

34
import { getTestBed } from '@angular/core/testing';
45
import {

packages/schematics/angular/library/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ function addLibToWorkspaceFile(
110110
options: {
111111
main: `${projectRoot}/src/test.ts`,
112112
tsConfig: `${projectRoot}/tsconfig.spec.json`,
113-
polyfills: ['zone.js', 'zone.js/testing'],
113+
polyfills: ['zone.js'],
114114
karmaConfig: `${projectRoot}/karma.conf.js`,
115115
},
116116
},

0 commit comments

Comments
 (0)