test(techdocs-cli): kill detached child process

Signed-off-by: Camila Belo <camilaibs@gmail.com>
This commit is contained in:
Camila Belo
2021-11-16 19:45:22 +01:00
parent 776c892469
commit c0e64a685f
6 changed files with 42 additions and 22 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ const { execSync } = require('child_process');
const args = process.argv.slice(2);
execSync(`yarn workspace @techdocs/cli build`, { stdio: 'inherit' });
execSync(`yarn -s workspace @techdocs/cli build`, { stdio: 'inherit' });
execSync(`yarn workspace @techdocs/cli link`, { stdio: 'ignore' });
execSync(`techdocs-cli ${args.join(' ')}`, { stdio: 'inherit' });
execSync(`yarn workspace @techdocs/cli unlink`, { stdio: 'ignore' });