Skip to content

Commit fd2c264

Browse files
alan-agius4Keen Yee Liau
authored and
Keen Yee Liau
committed
test: fix failing prod build snapshots
The output of a prod build contains now: ``` bootstrapModuleFactory($l).catch(e=>console.error(e))} ``` Which is not being matched with the previously defined RegExp
1 parent 6e7ec27 commit fd2c264

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/legacy-cli/e2e/tests/build/prod-build.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ export default async function () {
3333
const argv = getGlobalVariable('argv');
3434
const ivyProject = argv['ivy'];
3535
const bootstrapRegExp = ivyProject
36-
? /bootstrapModule\([a-zA-Z]+\)\./
37-
: /bootstrapModuleFactory\([a-zA-Z]+\)\./;
36+
? /bootstrapModule\([$]?[a-zA-Z]+\)\./
37+
: /bootstrapModuleFactory\([$]?[a-zA-Z]+\)\./;
3838

3939
await ng('build', '--prod');
4040
await expectFileToExist(join(process.cwd(), 'dist'));

0 commit comments

Comments
 (0)