Skip to content

Instantly share code, notes, and snippets.

@kisenka
Last active April 13, 2017 10:36
Show Gist options
  • Save kisenka/72de2b16411ca996a6a203e818c4dfaa to your computer and use it in GitHub Desktop.
Save kisenka/72de2b16411ca996a6a203e818c4dfaa to your computer and use it in GitHub Desktop.
module.exports = (wallaby) => {
const config = {
files: [
{ pattern: 'lib/*.js' },
{ pattern: 'lib/**/*.js' },
{ pattern: 'test/tests-*.js', instrument: false }
],
tests: [
{ pattern: 'test/*.test.js' }
],
testFramework: 'mocha',
env: {
type: 'node',
params: {
env: 'WALLABY_NODE=/Users/kisenka/.nvm/versions/node/v7.9.0/bin/node'
},
runner: '/Users/kisenka/.nvm/versions/node/v7.9.0/bin/node'
},
// eslint-disable-next-line no-shadow
setup: (wallaby) => {
const mocha = wallaby.testFramework;
mocha.ui('bdd');
}
};
return config;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment