From 4ede6fbd29bdcfc3beed81839e8db42bfe838383 Mon Sep 17 00:00:00 2001 From: Charles Lyding <19598772+clydin@users.noreply.github.com> Date: Wed, 4 Aug 2021 19:33:49 -0400 Subject: [PATCH] test(@angular-devkit/build-angular): allow identifiers with numbers in 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. --- tests/legacy-cli/e2e/tests/build/prod-build.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/legacy-cli/e2e/tests/build/prod-build.ts b/tests/legacy-cli/e2e/tests/build/prod-build.ts index c954b18e3e46..d109293815b9 100644 --- a/tests/legacy-cli/e2e/tests/build/prod-build.ts +++ b/tests/legacy-cli/e2e/tests/build/prod-build.ts @@ -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'));