Skip to content

Commit

Permalink
test(@angular-devkit/build-angular): allow identifiers with numbers i…
Browse files Browse the repository at this point in the history
…n production build E2E bootstrap call check

The JavaScript optimizer can potentially create identifiers that contain both letters and numbers (for example, `y2`). Such values were not previously accepted in the `build/prod-build` E2E test when checking for an Angular `bootstrapModule` call.
  • Loading branch information
clydin authored and alan-agius4 committed Aug 6, 2021
1 parent d2a97f9 commit 4ede6fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/legacy-cli/e2e/tests/build/prod-build.ts
Expand Up @@ -27,7 +27,7 @@ export default async function () {

// Can't use the `ng` helper because somewhere the environment gets
// stuck to the first build done
const bootstrapRegExp = /bootstrapModule\(.?[a-zA-Z]+\)\./;
const bootstrapRegExp = /bootstrapModule\([a-zA-Z]+[0-9]*\)\./;

await ng('build');
await expectFileToExist(join(process.cwd(), 'dist'));
Expand Down

0 comments on commit 4ede6fb

Please sign in to comment.