chore(test): Update wallaby.config.js (#166)
This commit is contained in:
parent
2af586867f
commit
38f33a67ce
@ -10,6 +10,7 @@ module.exports = wallaby => ({
|
|||||||
'src/**/*.js.snap',
|
'src/**/*.js.snap',
|
||||||
'!src/**/*.spec.js',
|
'!src/**/*.spec.js',
|
||||||
{ pattern: 'src/**/*.css', instrument: false },
|
{ pattern: 'src/**/*.css', instrument: false },
|
||||||
|
{pattern: '__mocks__/*.js', instrument: false}
|
||||||
],
|
],
|
||||||
|
|
||||||
tests: ['src/**/*.spec.js'],
|
tests: ['src/**/*.spec.js'],
|
||||||
@ -29,12 +30,7 @@ module.exports = wallaby => ({
|
|||||||
testFramework: 'jest',
|
testFramework: 'jest',
|
||||||
|
|
||||||
setup: () => {
|
setup: () => {
|
||||||
wallaby.testFramework.configure({
|
wallaby.testFramework.configure(require('./package.json').jest);
|
||||||
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'),
|
|
||||||
},
|
|
||||||
});
|
|
||||||
},
|
},
|
||||||
|
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user