From f778b1e2a70f3d507ab2012d2918f5ed241a8d21 Mon Sep 17 00:00:00 2001 From: Nikolay Vitkov <34244704+Lightning00Blade@users.noreply.github.com> Date: Wed, 28 Jun 2023 10:42:32 +0200 Subject: [PATCH] fix: use Node test reporter (#10464) --- packages/ng-schematics/src/schematics/utils/files.ts | 2 +- packages/ng-schematics/test/src/ng-add.spec.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/ng-schematics/src/schematics/utils/files.ts b/packages/ng-schematics/src/schematics/utils/files.ts index ea313d92..d294ad80 100644 --- a/packages/ng-schematics/src/schematics/utils/files.ts +++ b/packages/ng-schematics/src/schematics/utils/files.ts @@ -155,7 +155,7 @@ export function getScriptFromOptions(options: SchematicsOptions): string[][] { case TestingFramework.Node: return [ [`tsc`, '-p', 'e2e/tsconfig.json'], - ['node', '--test', 'e2e/build/'], + ['node', '--test', '--test-reporter', 'spec', 'e2e/build/'], ]; } } diff --git a/packages/ng-schematics/test/src/ng-add.spec.ts b/packages/ng-schematics/test/src/ng-add.spec.ts index 1180b23d..399df9d2 100644 --- a/packages/ng-schematics/test/src/ng-add.spec.ts +++ b/packages/ng-schematics/test/src/ng-add.spec.ts @@ -118,7 +118,7 @@ describe('@puppeteer/ng-schematics: ng-add', () => { expect(tree.files).toContain(getProjectFile('e2e/tests/app.test.ts')); expect(options['commands']).toEqual([ [`tsc`, '-p', 'e2e/tsconfig.json'], - ['node', '--test', 'e2e/build/'], + ['node', '--test', '--test-reporter', 'spec', 'e2e/build/'], ]); });