@@ -113,10 +113,7 @@ describe('Basic end-to-end Workflow', function () {
113
113
const exitCode = typeof result === 'object' ? result . exitCode : result ;
114
114
115
115
expect ( exitCode ) . to . be . equal ( 0 ) ;
116
-
117
- /**
118
- * coverage tests
119
- */
116
+
120
117
expect ( existsSync ( coverageDir ) ) . to . be . equal ( true ) ;
121
118
expect ( existsSync ( path . join ( coverageDir , 'coverage-final.json' ) ) ) . to . be . equal ( true ) ;
122
119
expect ( existsSync ( path . join ( coverageDir , 'html' ) ) ) . to . be . equal ( true ) ;
@@ -203,8 +200,12 @@ describe('Basic end-to-end Workflow', function () {
203
200
this . timeout ( 420000 ) ;
204
201
205
202
return ng ( testArgs ) . then ( function ( result ) {
203
+ var coverageDir = path . join ( process . cwd ( ) , 'coverage' ) ;
206
204
const exitCode = typeof result === 'object' ? result . exitCode : result ;
207
205
expect ( exitCode ) . to . be . equal ( 0 ) ;
206
+
207
+ expect ( existsSync ( path . join ( coverageDir , 'html' , 'app' , 'test-component' ) ) ) . to . be . equal ( true ) ;
208
+ expect ( existsSync ( path . join ( coverageDir , 'html' , 'app' , 'test-component' , 'test-component.component.ts.html' ) ) ) . to . be . equal ( true ) ;
208
209
} ) ;
209
210
} ) ;
210
211
@@ -221,8 +222,11 @@ describe('Basic end-to-end Workflow', function () {
221
222
this . timeout ( 420000 ) ;
222
223
223
224
return ng ( testArgs ) . then ( function ( result ) {
225
+ var coverageDir = path . join ( process . cwd ( ) , 'coverage' ) ;
224
226
const exitCode = typeof result === 'object' ? result . exitCode : result ;
225
227
expect ( exitCode ) . to . be . equal ( 0 ) ;
228
+
229
+ expect ( existsSync ( path . join ( coverageDir , 'html' , 'app' , 'test-service.service.ts.html' ) ) ) . to . be . equal ( true ) ;
226
230
} ) ;
227
231
} ) ;
228
232
@@ -239,8 +243,11 @@ describe('Basic end-to-end Workflow', function () {
239
243
this . timeout ( 420000 ) ;
240
244
241
245
return ng ( testArgs ) . then ( function ( result ) {
246
+ var coverageDir = path . join ( process . cwd ( ) , 'coverage' ) ;
242
247
const exitC
5C8A
ode = typeof result === 'object' ? result . exitCode : result ;
243
248
expect ( exitCode ) . to . be . equal ( 0 ) ;
249
+
250
+ expect ( existsSync ( path . join ( coverageDir , 'html' , 'app' , 'test-pipe.pipe.ts.html' ) ) ) . to . be . equal ( true ) ;
244
251
} ) ;
245
252
} ) ;
246
253
0 commit comments