ensures tests work with new babel config

This commit is contained in:
James
2020-09-21 21:58:16 -04:00
parent fe99952561
commit 628d68ed2d
20 changed files with 227 additions and 134 deletions

View File

@@ -4,4 +4,8 @@ module.exports = {
globalSetup: '<rootDir>/src/tests/globalSetup.js',
globalTeardown: '<rootDir>/src/tests/globalTeardown.js',
testTimeout: 15000,
moduleNameMapper: {
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': '<rootDir>/src/mocks/fileMock.js',
'\\.(css|scss)$': '<rootDir>/src/mocks/emptyModule.js',
},
};