@@ -82,7 +82,7 @@ describe('Browser Builder lazy modules', () => {
82
82
83
83
runTargetSpec ( host , browserTargetSpec ) . pipe (
84
84
tap ( ( buildEvent ) => expect ( buildEvent . success ) . toBe ( true ) ) ,
85
- tap ( ( ) => expect ( host . asSync ( ) . exists ( join ( outputPath , 'lazy-lazy-module.js' ) ) ) . toBe ( true ) ) ,
85
+ tap ( ( ) => expect ( host . scopedSync ( ) . exists ( join ( outputPath , 'lazy-lazy-module.js' ) ) ) . toBe ( true ) ) ,
86
86
) . subscribe ( undefined , done . fail , done ) ;
87
87
} , 30000 ) ;
88
88
@@ -96,7 +96,7 @@ describe('Browser Builder lazy modules', () => {
96
96
97
97
runTargetSpec ( host , browserTargetSpec ) . pipe (
98
98
tap ( ( buildEvent ) => expect ( buildEvent . success ) . toBe ( true ) ) ,
99
- tap ( ( ) => expect ( host . asSync ( ) . exists ( join ( outputPath , '0.js' ) ) ) . toBe ( true ) ) ,
99
+ tap ( ( ) => expect ( host . scopedSync ( ) . exists ( join ( outputPath , '0.js' ) ) ) . toBe ( true ) ) ,
100
100
) . subscribe ( undefined , done . fail , done ) ;
101
101
} , 30000 ) ;
102
102
@@ -112,7 +112,7 @@ describe('Browser Builder lazy modules', () => {
112
112
113
113
runTargetSpec ( host , browserTargetSpec ) . pipe (
114
114
tap ( ( buildEvent ) => expect ( buildEvent . success ) . toBe ( true ) ) ,
115
- tap ( ( ) => expect ( host . asSync ( ) . exists ( join ( outputPath , 'lazy-module.js' ) ) ) . toBe ( true ) ) ,
115
+ tap ( ( ) => expect ( host . scopedSync ( ) . exists ( join ( outputPath , 'lazy-module.js' ) ) ) . toBe ( true ) ) ,
116
116
) . subscribe ( undefined , done . fail , done ) ;
117
117
} , 30000 ) ;
118
118
@@ -124,7 +124,7 @@ describe('Browser Builder lazy modules', () => {
124
124
125
125
runTargetSpec ( host , browserTargetSpec ) . pipe (
126
126
tap ( ( buildEvent ) => expect ( buildEvent . success ) . toBe ( true ) ) ,
127
- tap ( ( ) => expect ( host . asSync ( ) . exists ( join ( outputPath , '0.js' ) ) ) . toBe ( true ) ) ,
127
+ tap ( ( ) => expect ( host . scopedSync ( ) . exists ( join ( outputPath , '0.js' ) ) ) . toBe ( true ) ) ,
128
128
) . subscribe ( undefined , done . fail , done ) ;
129
129
} , 30000 ) ;
130
130
@@ -139,7 +139,7 @@ describe('Browser Builder lazy modules', () => {
139
139
140
140
runTargetSpec ( host , browserTargetSpec , overrides ) . pipe (
141
141
tap ( ( buildEvent ) => expect ( buildEvent . success ) . toBe ( true ) ) ,
142
- tap ( ( ) => expect ( host . asSync ( ) . exists ( join ( outputPath , '0.js' ) ) ) . toBe ( true ) ) ,
142
+ tap ( ( ) => expect ( host . scopedSync ( ) . exists ( join ( outputPath , '0.js' ) ) ) . toBe ( true ) ) ,
143
143
) . subscribe ( undefined , done . fail , done ) ;
144
144
} , 30000 ) ;
145
145
@@ -153,10 +153,10 @@ describe('Browser Builder lazy modules', () => {
153
153
154
154
runTargetSpec ( host , browserTargetSpec ) . pipe (
155
155
tap ( ( buildEvent ) => expect ( buildEvent . success ) . toBe ( true ) ) ,
156
- tap ( ( ) => expect ( host . asSync ( ) . exists ( join ( outputPath , '0.js' ) ) ) . toBe ( true ) ) ,
157
- tap ( ( ) => expect ( host . asSync ( ) . exists ( join ( outputPath , '1.js' ) ) ) . toBe ( true ) ) ,
156
+ tap ( ( ) => expect ( host . scopedSync ( ) . exists ( join ( outputPath , '0.js' ) ) ) . toBe ( true ) ) ,
157
+ tap ( ( ) => expect ( host . scopedSync ( ) . exists ( join ( outputPath , '1.js' ) ) ) . toBe ( true ) ) ,
158
158
// TODO: the chunk with common modules used to be called `common`, see why that changed.
159
- tap ( ( ) => expect ( host . asSync ( ) . exists ( join ( outputPath , '2.js' ) ) ) . toBe ( true ) ) ,
159
+ tap ( ( ) => expect ( host . scopedSync ( ) . exists ( join ( outputPath , '2.js' ) ) ) . toBe ( true ) ) ,
160
160
) . subscribe ( undefined , done . fail , done ) ;
161
161
} , 30000 ) ;
162
162
@@ -172,9 +172,9 @@ describe('Browser Builder lazy modules', () => {
172
172
173
173
runTargetSpec ( host , browserTargetSpec , overrides ) . pipe (
174
174
tap ( ( buildEvent ) => expect ( buildEvent . success ) . toBe ( true ) ) ,
175
- tap ( ( ) => expect ( host . asSync ( ) . exists ( join ( outputPath , '0.js' ) ) ) . toBe ( true ) ) ,
176
- tap ( ( ) => expect ( host . asSync ( ) . exists ( join ( outputPath , '1.js' ) ) ) . toBe ( true ) ) ,
177
- tap ( ( ) => expect ( host . asSync ( ) . exists ( join ( outputPath , '2.js' ) ) ) . toBe ( false ) ) ,
175
+ tap ( ( ) => expect ( host . scopedSync ( ) . exists ( join ( outputPath , '0.js' ) ) ) . toBe ( true ) ) ,
176
+ tap ( ( ) => expect ( host . scopedSync ( ) . exists ( join ( outputPath , '1.js' ) ) ) . toBe ( true ) ) ,
177
+ tap ( ( ) => expect ( host . scopedSync ( ) . exists ( join ( outputPath , '2.js' ) ) ) . toBe ( false ) ) ,
178
178
) . subscribe ( undefined , done . fail , done ) ;
179
179
} , 30000 ) ;
180
180
@@ -205,7 +205,7 @@ describe('Browser Builder lazy modules', () => {
205
205
206
206
runTargetSpec ( host , browserTargetSpec , overrides ) . pipe (
207
207
tap ( ( buildEvent ) => expect ( buildEvent . success ) . toBe ( true ) ) ,
208
- tap ( ( ) => expect ( host . asSync ( ) . exists ( join ( outputPath , 'lazy-lazy-module.js' ) ) )
208
+ tap ( ( ) => expect ( host . scopedSync ( ) . exists ( join ( outputPath , 'lazy-lazy-module.js' ) ) )
209
209
. toBe ( true ) ) ,
210
210
) . subscribe ( undefined , done . fail , done ) ;
211
211
} , 30000 ) ;
0 commit comments