Skip to content

Instantly share code, notes, and snippets.

@patricksevat
Created November 25, 2019 19:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save patricksevat/1c23861fa94038827bdf74d8730bbbbf to your computer and use it in GitHub Desktop.
Save patricksevat/1c23861fa94038827bdf74d8730bbbbf to your computer and use it in GitHub Desktop.
Advanced wdio conf
// ./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