Skip to content

Commit

Permalink
test: fix failing prod build snapshots
Browse files Browse the repository at this point in the history
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
  • Loading branch information
alan-agius4 authored and Keen Yee Liau committed Aug 6, 2019
1 parent 6e7ec27 commit fd2c264
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/legacy-cli/e2e/tests/build/prod-build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ export default async function () {
const argv = getGlobalVariable('argv');
const ivyProject = argv['ivy'];
const bootstrapRegExp = ivyProject
? /bootstrapModule\([a-zA-Z]+\)\./
: /bootstrapModuleFactory\([a-zA-Z]+\)\./;
? /bootstrapModule\([$]?[a-zA-Z]+\)\./
: /bootstrapModuleFactory\([$]?[a-zA-Z]+\)\./;

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

0 comments on commit fd2c264

Please sign in to comment.