File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
tests/legacy-cli/e2e/tests/build Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 11import { statSync } from 'fs' ;
22import { join } from 'path' ;
33import { expectFileToExist , expectFileToMatch , readFile } from '../../utils/fs' ;
4- import { ng } from '../../utils/process' ;
4+ import { noSilentNg } from '../../utils/process' ;
55
66function verifySize ( bundle : string , baselineBytes : number ) {
77 const size = statSync ( `dist/test-project/${ bundle } ` ) . size ;
@@ -29,7 +29,7 @@ export default async function () {
2929 // stuck to the first build done
3030 const bootstrapRegExp = / b o o t s t r a p M o d u l e \( [ a - z A - Z ] + [ 0 - 9 ] * \) \. / ;
3131
32- await ng ( 'build' ) ;
32+ await noSilentNg ( 'build' ) ;
3333 await expectFileToExist ( join ( process . cwd ( ) , 'dist' ) ) ;
3434 // Check for cache busting hash script src
3535 await expectFileToMatch ( 'dist/test-project/index.html' , / m a i n \. [ 0 - 9 a - f ] { 16 } \. j s / ) ;
@@ -43,5 +43,5 @@ export default async function () {
4343 await expectFileToMatch ( `dist/test-project/${ mainES2017Path } ` , bootstrapRegExp ) ;
4444
4545 // Size checks in bytes
46- verifySize ( mainES2017Path , 141032 ) ;
46+ verifySize ( mainES2017Path , 124000 ) ;
4747}
You can’t perform that action at this time.
0 commit comments