2016-10-12 14:32:53 +02:00
|
|
|
/* eslint global-require: 0 */
|
|
|
|
/* eslint import/no-extraneous-dependencies: 0 */
|
|
|
|
|
2016-09-20 14:00:03 +02:00
|
|
|
process.env.BABEL_ENV = 'test';
|
|
|
|
|
|
|
|
module.exports = wallaby => ({
|
|
|
|
files: [
|
2016-10-12 14:32:53 +02:00
|
|
|
'package.json',
|
|
|
|
'src/**/*.js',
|
|
|
|
'src/**/*.js.snap',
|
|
|
|
'!src/**/*.spec.js',
|
2016-11-11 12:08:20 +01:00
|
|
|
{ pattern: 'src/**/*.css', instrument: false },
|
2016-11-21 10:37:54 +01:00
|
|
|
{ pattern: '__mocks__/*.js', instrument: false },
|
2016-09-20 14:00:03 +02:00
|
|
|
],
|
|
|
|
|
2016-10-12 14:32:53 +02:00
|
|
|
tests: ['src/**/*.spec.js'],
|
2016-09-20 14:00:03 +02:00
|
|
|
|
|
|
|
compilers: {
|
2016-10-12 14:32:53 +02:00
|
|
|
'src/**/*.js': wallaby.compilers.babel(),
|
2016-09-20 14:00:03 +02:00
|
|
|
},
|
|
|
|
|
|
|
|
env: {
|
|
|
|
type: 'node',
|
2016-10-12 14:32:53 +02:00
|
|
|
runner: 'node',
|
|
|
|
params: {
|
|
|
|
runner: '--harmony_proxies',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
testFramework: 'jest',
|
|
|
|
|
|
|
|
setup: () => {
|
2016-11-21 19:36:42 +10:00
|
|
|
wallaby.testFramework.configure(require('./package.json').jest);
|
2016-09-20 14:00:03 +02:00
|
|
|
},
|
|
|
|
|
|
|
|
});
|