chore(test): Update wallaby.config.js (#166)

This commit is contained in:
Artem Govorov 2016-11-21 19:36:42 +10:00 committed by Andrey Okonetchnikov
parent 2af586867f
commit 38f33a67ce

View File

@ -10,6 +10,7 @@ module.exports = wallaby => ({
'src/**/*.js.snap',
'!src/**/*.spec.js',
{ pattern: 'src/**/*.css', instrument: false },
{pattern: '__mocks__/*.js', instrument: false}
],
tests: ['src/**/*.spec.js'],
@ -29,12 +30,7 @@ module.exports = wallaby => ({
testFramework: 'jest',
setup: () => {
wallaby.testFramework.configure({
moduleNameMapper: {
'^.+\\.(png|eot|woff|woff2|ttf|svg|gif)$': require('path').join(wallaby.localProjectDir, '__mocks__', 'fileLoaderMock.js'),
'^.+\\.s?css$': require('path').join(wallaby.localProjectDir, '__mocks__', 'styleLoaderMock.js'),
},
});
wallaby.testFramework.configure(require('./package.json').jest);
},
});