fix: use Node test reporter (#10464)
This commit is contained in:
parent
10fa352102
commit
f778b1e2a7
@ -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/'],
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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/'],
|
||||||
]);
|
]);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user