Skip to content

Commit 50a46c6

Browse files
committed
test: update webpack tests filenames and size checks to pass with latest webpack
Fix CI (cherry picked from commit 25de3e9)
1 parent c306f73 commit 50a46c6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/legacy-cli/e2e/tests/packages/webpack/test-app.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ export default async function () {
1313
await execWithEnv(webpackCLIBin, [], { ...process.env, 'DISABLE_V8_COMPILE_CACHE': '1' });
1414

1515
// Note: these sizes are without Build Optimizer or any advanced optimizations in the CLI.
16-
await expectFileSizeToBeUnder('dist/app.main.js', 656 * 1024);
17-
await expectFileSizeToBeUnder('dist/501.app.main.js', 1 * 1024);
18-
await expectFileSizeToBeUnder('dist/888.app.main.js', 2 * 1024);
19-
await expectFileSizeToBeUnder('dist/972.app.main.js', 2 * 1024);
16+
await expectFileSizeToBeUnder('dist/app.main.js', 650 * 1024);
17+
await expectFileSizeToBeUnder('dist/604.app.main.js', 1024);
18+
await expectFileSizeToBeUnder('dist/988.app.main.js', 1024);
19+
await expectFileSizeToBeUnder('dist/896.app.main.js', 1024);
2020

2121
// test resource urls without ./
2222
await replaceInFile('app/app.component.ts', './app.component.html', 'app.component.html');

0 commit comments

Comments
 (0)