Created
October 11, 2016 09:28
-
-
Save lgandecki/947f55f07b3fb8d8abd37e9da1307e08 to your computer and use it in GitHub Desktop.
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
const path = require('path'); | |
module.exports = function (wallaby) { | |
return { | |
files: [ | |
{pattern: 'node_modules/babel-polyfill/dist/polyfill.js', instrument: false}, | |
'public/data.json', | |
'js/**/*.js' | |
], | |
tests: [ | |
'test/**/*spec.js' | |
], | |
compilers: { | |
'**/*.js': wallaby.compilers.babel() | |
}, | |
testFramework: 'mocha', | |
setup: function(wallaby) { | |
require('babel-register') | |
require('babel-polyfill') | |
global.document = require('jsdom').jsdom('<body><div id="app"></div></body>') | |
global.window = document.defaultView | |
global.navigator = window.navigator | |
}, | |
env: { | |
type: 'node', | |
runner: path.resolve(process.env.HOME, '.nvm/versions/node/v4.4.0/bin/node'), | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment