fix: use Node test reporter (#10464)

This commit is contained in:
Nikolay Vitkov 2023-06-28 10:42:32 +02:00 committed by GitHub
parent 10fa352102
commit f778b1e2a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -155,7 +155,7 @@ export function getScriptFromOptions(options: SchematicsOptions): string[][] {
case TestingFramework.Node: case TestingFramework.Node:
return [ return [
[`tsc`, '-p', 'e2e/tsconfig.json'], [`tsc`, '-p', 'e2e/tsconfig.json'],
['node', '--test', 'e2e/build/'], ['node', '--test', '--test-reporter', 'spec', 'e2e/build/'],
]; ];
} }
} }

View File

@ -118,7 +118,7 @@ describe('@puppeteer/ng-schematics: ng-add', () => {
expect(tree.files).toContain(getProjectFile('e2e/tests/app.test.ts')); expect(tree.files).toContain(getProjectFile('e2e/tests/app.test.ts'));
expect(options['commands']).toEqual([ expect(options['commands']).toEqual([
[`tsc`, '-p', 'e2e/tsconfig.json'], [`tsc`, '-p', 'e2e/tsconfig.json'],
['node', '--test', 'e2e/build/'], ['node', '--test', '--test-reporter', 'spec', 'e2e/build/'],
]); ]);
}); });