Add api-test script to log poll result on passing --debug flag

This commit is contained in:
kumaran-14
2020-04-11 11:54:58 +05:30
parent a840db3e79
commit f9b2f3e87d
4 changed files with 65 additions and 1 deletions
+10
View File
@@ -51,6 +51,16 @@ if (checkCoverage) {
process.exit(run.status);
}
const checkDebug = flagArgs.indexOf('--debug') >= 0;
if (checkDebug) {
env.DEBUG = 'debug';
}
if (env.DEBUG) {
console.log('poll result', result);
}
const run = cp.spawnSync(
npmBinScript('mocha'),
[...testFiles, ...flagArgs],