Skip to content

Commit

Permalink
test(vscode): improve resilient when running from vscode launch by in…
Browse files Browse the repository at this point in the history
…creasing timeout
  • Loading branch information
chrissimon-au committed Nov 20, 2023
1 parent 2e777ab commit f13c6c4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/vscode/contextive/test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@ const Mocha = require('mocha');
const glob = require('glob');

function getMochaOpts() {
const defaultOpts = {timeout: 5000};
if (process.env.MOCHA_FGREP) {
return {
fgrep: process.env.MOCHA_FGREP
fgrep: process.env.MOCHA_FGREP,
...defaultOpts
};
}
return {};
return defaultOpts;
}

function run() {
Expand Down

0 comments on commit f13c6c4

Please sign in to comment.