From 38f33a67ceafe0cd9fe42288bb57c146bdb229ab Mon Sep 17 00:00:00 2001 From: Artem Govorov Date: Mon, 21 Nov 2016 19:36:42 +1000 Subject: [PATCH] chore(test): Update wallaby.config.js (#166) --- wallaby.config.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/wallaby.config.js b/wallaby.config.js index 91ae1eb9..2553a751 100644 --- a/wallaby.config.js +++ b/wallaby.config.js @@ -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); }, });