Skip to content

Instantly share code, notes, and snippets.

@patricksevat
Created November 20, 2019 20:26
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/428076d81bd697e82712615e3b86214d to your computer and use it in GitHub Desktop.
Save patricksevat/428076d81bd697e82712615e3b86214d 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 = {
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