cli: forward test coverage flag
This commit is contained in:
@@ -8,6 +8,9 @@ export default async (cmd: Command) => {
|
||||
if (cmd.watch) {
|
||||
args.push('--watch');
|
||||
}
|
||||
if (cmd.coverage) {
|
||||
args.push('--coverage');
|
||||
}
|
||||
|
||||
try {
|
||||
const result = spawnSync('web-scripts', args, { stdio: 'inherit' });
|
||||
|
||||
@@ -41,6 +41,7 @@ const main = (argv: string[]) => {
|
||||
program
|
||||
.command('plugin:test')
|
||||
.option('--watch', 'Enable watch mode')
|
||||
.option('--coverage', 'Report test coverage')
|
||||
.description('Run all tests for a plugin')
|
||||
.action(pluginTest);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user