Skip to content

Commit

Permalink
feat: add mochaOptions to runTests
Browse files Browse the repository at this point in the history
  • Loading branch information
aadityataparia committed Jun 6, 2019
1 parent e8c8360 commit 39568b0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/test/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ module.exports = async function({
useJunitReporter = false,
junitXmlFile = path.join(root, `./test-results/${path.basename(root)}/results.xml`),
inspect = false,
reporters = ['html']
reporters = ['html'],
mochaOptions = {}
} = {}) {
if (inspect) require('inspector').open(undefined, undefined, true);

Expand Down Expand Up @@ -87,9 +88,6 @@ module.exports = async function({
}
if (setGlobals) testGlobals();

const mochaOptions = {
timeout: 10000
};
if (useJunitReporter) {
mochaOptions.reporter = 'mocha-junit-reporter';
mochaOptions.reporterOptions = {
Expand Down

0 comments on commit 39568b0

Please sign in to comment.