Skip to content

Commit f22bcbd

Browse files
committed
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.
1 parent 96ff17b commit f22bcbd

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/legacy-cli/e2e/tests/build/ts-standard-decorators.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { ng } from '../../utils/process';
2-
import { updateTsConfig } from '../../utils/project';
2+
import { updateJsonFile, updateTsConfig } from '../../utils/project';
33

44
export default async function () {
55
// Update project to disable experimental decorators
@@ -11,6 +11,11 @@ export default async function () {
1111
await ng('build');
1212

1313
// Production build with JIT
14+
await updateJsonFile('angular.json', (json) => {
15+
// Remove bundle budgets to avoid a build error due to the expected increased output size
16+
// of a JIT production build.
17+
json.projects['test-project'].architect.build.configurations.production.budgets = [];
18+
});
1419
await ng('build', '--no-aot', '--no-build-optimizer');
1520

1621
// Default development build

0 commit comments

Comments
 (0)