Skip to content

Commit ed790c1

Browse files
committed
test: update E2E production application size expectations
Improvements to the framework for `14.0.0-next.3` resulted in reduced main bundle sizes. ``` Initial Chunk Files | Names | Raw Size | Estimated Transfer Size main.f6e8bb94b78b0b43.js | main | 120.24 kB | 36.23 kB ```
1 parent 2acec7f commit ed790c1

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/${mainPath}`, bootstrapRegExp);
4444

4545
// Size checks in bytes
46-
verifySize(mainPath, 141032);
46+
verifySize(mainPath, 124000);
4747
}

0 commit comments

Comments
 (0)