Created
November 25, 2019 19:12
-
-
Save patricksevat/1c23861fa94038827bdf74d8730bbbbf to your computer and use it in GitHub Desktop.
Advanced wdio conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ./wdio.conf.js | |
const argv = require('yargs').argv; | |
const { getFilteredSpecFiles, getRegularExpression } = require('./getSpecFiles'); | |
const cmdOpts = { | |
'happy-flow': argv.happyFlow, | |
target: argv.target, | |
}; | |
const SPECS = getFilteredSpecFiles(['spec/**/*.spec.ts'], cmdOpts); | |
exports.config = { | |
specs: argv.spec || SPECS, | |
framework: 'jasmine', | |
jasmineNodeOpts: { | |
defaultTimeoutInterval: 60000, | |
grep: getRegularExpression(cmdOpts), | |
invertGrep: false, | |
isVerbose: false, | |
}, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment