File tree 1 file changed +3
-3
lines changed
tests/legacy-cli/e2e/tests/build
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
import { statSync } from 'fs' ;
2
2
import { join } from 'path' ;
3
3
import { expectFileToExist , expectFileToMatch , readFile } from '../../utils/fs' ;
4
- import { ng } from '../../utils/process' ;
4
+ import { noSilentNg } from '../../utils/process' ;
5
5
6
6
function verifySize ( bundle : string , baselineBytes : number ) {
7
7
const size = statSync ( `dist/test-project/${ bundle } ` ) . size ;
@@ -29,7 +29,7 @@ export default async function () {
29
29
// stuck to the first build done
30
30
const bootstrapRegExp = / b o o t s t r a p M o d u l e \( [ a - z A - Z ] + [ 0 - 9 ] * \) \. / ;
31
31
32
- await ng ( 'build' ) ;
32
+ await noSilentNg ( 'build' ) ;
33
33
await expectFileToExist ( join ( process . cwd ( ) , 'dist' ) ) ;
34
34
// Check for cache busting hash script src
35
35
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 () {
43
43
await expectFileToMatch ( `dist/test-project/${ mainES2017Path } ` , bootstrapRegExp ) ;
44
44
45
45
// Size checks in bytes
46
- verifySize ( mainES2017Path , 141032 ) ;
46
+ verifySize ( mainES2017Path , 124000 ) ;
47
47
}
You can’t perform that action at this time.
0 commit comments