Skip to content

Commit 703c50e

Browse files
kyliauclydin
authored andcommitted
test: print stderr if DedupeModuleResolvePlugin not found
This commit attempts to identify flakiness in the dedupe-duplicate-modules.ts test in which the signature string occasionally fails to show up in stderr. Dumping out the whole stderr would help us identify the bug. Example failure on master: https://app.circleci.com/pipelines/github/angular/angular-cli/7867/workflows/fdabb867-5dbe-4b85-80c5-24b6bca328dd/jobs/167264/steps
1 parent a5b35de commit 703c50e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/legacy-cli/e2e/tests/misc/dedupe-duplicate-modules.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ export default async function () {
3131

3232
const { stderr } = await ng('build', '--verbose', '--no-vendor-chunk', '--no-progress');
3333
if (!/\[DedupeModuleResolvePlugin\]:.+tslib-1-copy -> .+tslib-1/.test(stderr)) {
34+
console.error(`\n\n\n${stderr}\n\n\n`);
3435
throw new Error('Expected stderr to contain [DedupeModuleResolvePlugin] log for tslib.');
3536
}
3637

0 commit comments

Comments
 (0)