From 25de3e9f8c3350a4256d3b93c88cbf8f9a4453a2 Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Fri, 2 Feb 2024 07:52:03 +0000 Subject: [PATCH] test: update webpack tests filenames and size checks to pass with latest webpack Fix CI --- tests/legacy-cli/e2e/tests/packages/webpack/test-app.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/legacy-cli/e2e/tests/packages/webpack/test-app.ts b/tests/legacy-cli/e2e/tests/packages/webpack/test-app.ts index 2ddcca27f97f..23014a148836 100644 --- a/tests/legacy-cli/e2e/tests/packages/webpack/test-app.ts +++ b/tests/legacy-cli/e2e/tests/packages/webpack/test-app.ts @@ -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');