Skip to content

Commit 9a0d3f5

Browse files
committed
fixup! build: add option for running all component tests
Address feedback
1 parent 91dad03 commit 9a0d3f5

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

scripts/run-component-tests.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,12 @@ if (all) {
7474
// Exit if no component has been specified.
7575
if (!components.length) {
7676
console.error(chalk.red(
77-
'No component specified. Specify a component name, or pass a ' +
78-
'path to the component directory.'));
77+
'No component specified. Please either specify individual components, or pass the "--all" ' +
78+
'flag in order to run tests for all components.'));
79+
console.info(chalk.yellow('Below are a few examples of how the script can be run:'));
80+
console.info(chalk.yellow(` - yarn test --all`));
81+
console.info(chalk.yellow(` - yarn test src/cdk/button src/material/stepper`));
82+
console.info(chalk.yellow(` - yarn test button toolbar`));
7983
process.exit(1);
8084
}
8185

0 commit comments

Comments
 (0)