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-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: () => {
|
|
|
|
wallaby.testFramework.configure({
|
|
|
|
moduleNameMapper: {
|
|
|
|
'^.+\\.(png|eot|woff|woff2|ttf|svg|gif)$': require('path').join(wallaby.localProjectDir, '__mocks__', 'fileLoaderMock.js'),
|
2016-11-11 12:08:20 +01:00
|
|
|
'^.+\\.s?css$': require('path').join(wallaby.localProjectDir, '__mocks__', 'styleLoaderMock.js'),
|
2016-10-12 14:32:53 +02:00
|
|
|
},
|
|
|
|
});
|
2016-09-20 14:00:03 +02:00
|
|
|
},
|
|
|
|
|
|
|
|
});
|