Skip to content

Commit

Permalink
test: update webpack tests filenames and size checks to pass with lat…
Browse files Browse the repository at this point in the history
…est webpack

Fix CI

(cherry picked from commit 25de3e9)
  • Loading branch information
alan-agius4 committed Feb 2, 2024
1 parent c306f73 commit 50a46c6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/legacy-cli/e2e/tests/packages/webpack/test-app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ export default async function () {
await execWithEnv(webpackCLIBin, [], { ...process.env, 'DISABLE_V8_COMPILE_CACHE': '1' });

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

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

0 comments on commit 50a46c6

Please sign in to comment.