Skip to content

Commit

Permalink
test: remove bundle budgets from JIT prod build step in E2E
Browse files Browse the repository at this point in the history
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.

(cherry picked from commit f22bcbd)
  • Loading branch information
clydin committed Aug 3, 2023
1 parent 33285ff commit 6d1da30
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/legacy-cli/e2e/tests/build/ts-standard-decorators.ts
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down

0 comments on commit 6d1da30

Please sign in to comment.