Skip to content

Commit

Permalink
feat: Support MOCHA_GREP/MOCHA_INVERT envvars (#1262)
Browse files Browse the repository at this point in the history
  • Loading branch information
TamiTakamiya authored Apr 17, 2024
1 parent 447137f commit 6b7ced9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/extester/src/suite/runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,14 @@ export class VSRunner {
console.log('Unsupported mocha configuration file extension, make sure to use .js, .json, .yml or .yaml file');
}
}

if (process.env.MOCHA_GREP) {
conf.grep = process.env.MOCHA_GREP;
}
if (process.env.MOCHA_INVERT) {
conf.invert = process.env.MOCHA_INVERT === 'true';
}

return conf;
}
}

0 comments on commit 6b7ced9

Please sign in to comment.