From f22bcbdc48a03cde47140e544f046eccf3fc64ba Mon Sep 17 00:00:00 2001 From: Charles Lyding <19598772+clydin@users.noreply.github.com> Date: Thu, 3 Aug 2023 08:08:22 -0400 Subject: [PATCH] test: remove bundle budgets from JIT prod build step in E2E In the TS standard decorator E2E test a JIT production build is executed. The bundle budgets are now removed from this test step to prevent the build from erroring due to the expected increase in output build size resulting from this type of build. --- tests/legacy-cli/e2e/tests/build/ts-standard-decorators.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/legacy-cli/e2e/tests/build/ts-standard-decorators.ts b/tests/legacy-cli/e2e/tests/build/ts-standard-decorators.ts index aac0c1568c8e..3dbf90bfe174 100644 --- a/tests/legacy-cli/e2e/tests/build/ts-standard-decorators.ts +++ b/tests/legacy-cli/e2e/tests/build/ts-standard-decorators.ts @@ -1,5 +1,5 @@ import { ng } from '../../utils/process'; -import { updateTsConfig } from '../../utils/project'; +import { updateJsonFile, updateTsConfig } from '../../utils/project'; export default async function () { // Update project to disable experimental decorators @@ -11,6 +11,11 @@ export default async function () { await ng('build'); // Production build with JIT + await updateJsonFile('angular.json', (json) => { + // Remove bundle budgets to avoid a build error due to the expected increased output size + // of a JIT production build. + json.projects['test-project'].architect.build.configurations.production.budgets = []; + }); await ng('build', '--no-aot', '--no-build-optimizer'); // Default development build