Skip to content

Commit d82d0eb

Browse files
committed
test: update E2E production application size expectations
Improvements to the framework for `13.2.5` resulted in reduced main bundle sizes. (cherry picked from commit ed790c1)
1 parent 37ac443 commit d82d0eb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/legacy-cli/e2e/tests/build/prod-build.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { statSync } from 'fs';
22
import { join } from 'path';
33
import { expectFileToExist, expectFileToMatch, readFile } from '../../utils/fs';
4-
import { ng } from '../../utils/process';
4+
import { noSilentNg } from '../../utils/process';
55

66
function 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 = /bootstrapModule\([a-zA-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', /main\.[0-9a-f]{16}\.js/);
@@ -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
}

0 commit comments

Comments
 (0)