@@ -9,7 +9,7 @@ import { Architect } from '@angular-devkit/architect';
9
9
import { BrowserBuilderOutput } from '@angular-devkit/build-angular' ;
10
10
import { logging } from '@angular-devkit/core' ;
11
11
import { debounceTime , take , tap } from 'rxjs/operators' ;
12
- import { createArchitect , host , veEnabled } from '../../test-utils' ;
12
+ import { createArchitect , host } from '../../test-utils' ;
13
13
14
14
// tslint:disable-next-line:no-big-function
15
15
describe ( 'Browser Builder unused files warnings' , ( ) => {
@@ -25,13 +25,6 @@ describe('Browser Builder unused files warnings', () => {
25
25
afterEach ( async ( ) => host . restore ( ) . toPromise ( ) ) ;
26
26
27
27
it ( 'should not show warning when all files are used' , async ( ) => {
28
- if ( veEnabled ) {
29
- // TODO: https://github.com/angular/angular-cli/issues/15056
30
- pending ( 'Only supported in Ivy.' ) ;
31
-
32
- return ;
33
- }
34
-
35
28
const logger = new logging . Logger ( '' ) ;
36
29
const logs : string [ ] = [ ] ;
37
30
logger . subscribe ( e => logs . push ( e . message ) ) ;
@@ -45,13 +38,6 @@ describe('Browser Builder unused files warnings', () => {
45
38
} ) ;
46
39
47
40
it ( 'should show warning when some files are unused' , async ( ) => {
48
- if ( veEnabled ) {
49
- // TODO: https://github.com/angular/angular-cli/issues/15056
50
- pending ( 'Only supported in Ivy.' ) ;
51
-
52
- return ;
53
- }
54
-
55
41
host . replaceInFile (
56
42
'src/tsconfig.app.json' ,
57
43
'"main.ts"' ,
@@ -71,13 +57,6 @@ describe('Browser Builder unused files warnings', () => {
71
57
} ) ;
72
58
73
59
it ( 'should not show warning when excluded files are unused' , async ( ) => {
74
- if ( veEnabled ) {
75
- // TODO: https://github.com/angular/angular-cli/issues/15056
76
- pending ( 'Only supported in Ivy.' ) ;
77
-
78
- return ;
79
- }
80
-
81
60
const ignoredFiles = {
82
61
'src/file.d.ts' : 'export type MyType = number;' ,
83
62
} ;
@@ -109,13 +88,6 @@ describe('Browser Builder unused files warnings', () => {
109
88
} ) ;
110
89
111
90
it ( 'should not show warning when type files are used' , async ( ) => {
112
- if ( veEnabled ) {
113
- // TODO: https://github.com/angular/angular-cli/issues/15056
114
- pending ( 'Only supported in Ivy.' ) ;
115
-
116
- return ;
117
- }
118
-
119
91
host . writeMultipleFiles ( {
120
92
'src/app/type.ts' : 'export type MyType = number;' ,
121
93
} ) ;
@@ -139,13 +111,6 @@ describe('Browser Builder unused files warnings', () => {
139
111
} ) ;
140
112
141
113
it ( 'should not show warning when type files are used transitively' , async ( ) => {
142
- if ( veEnabled ) {
143
- // TODO: https://github.com/angular/angular-cli/issues/15056
144
- pending ( 'Only supported in Ivy.' ) ;
145
-
146
- return ;
147
- }
148
-
149
114
host . writeMultipleFiles ( {
150
115
'src/app/type.ts' :
151
116
`import {Myinterface} from './interface'; export type MyType = Myinterface;` ,
@@ -171,13 +136,6 @@ describe('Browser Builder unused files warnings', () => {
171
136
} ) ;
172
137
173
138
it ( 'works for rebuilds' , async ( ) => {
174
- if ( veEnabled ) {
175
- // TODO: https://github.com/angular/angular-cli/issues/15056
176
- pending ( 'Only supported in Ivy.' ) ;
177
-
178
- return ;
179
- }
180
-
181
139
host . replaceInFile (
182
140
'src/tsconfig.app.json' ,
183
141
'"**/*.d.ts"' ,
@@ -242,13 +200,6 @@ describe('Browser Builder unused files warnings', () => {
242
200
} ) ;
243
201
244
202
it ( 'should only show warning once per file' , async ( ) => {
245
- if ( veEnabled ) {
246
- // TODO: https://github.com/angular/angular-cli/issues/15056
247
- pending ( 'Only supported in Ivy.' ) ;
248
-
249
- return ;
250
- }
251
-
252
203
host . replaceInFile (
253
204
'src/tsconfig.app.json' ,
254
205
'"**/*.d.ts"' ,
0 commit comments