Created
November 20, 2019 20:26
-
-
Save patricksevat/428076d81bd697e82712615e3b86214d 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 = { | |
smoke: argv.smoke, | |
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