cli: forward test coverage flag

This commit is contained in:
Patrik Oldsberg
2020-03-09 09:46:31 +01:00
parent 90b21e731e
commit ebf20c38ba
2 changed files with 4 additions and 0 deletions
+3
View File
@@ -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' });
+1
View File
@@ -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);