Jest: fix SVG import breaking tests

This commit is contained in:
Alex Gleason
2021-09-06 19:03:23 -05:00
parent a720f3ea32
commit 35d18fbe33
3 changed files with 13 additions and 0 deletions

View File

@@ -31,4 +31,11 @@ module.exports = {
'<rootDir>/app',
],
'testEnvironment': 'jsdom',
'moduleNameMapper': {
'^.+.(css|styl|less|sass|scss|png|jpg|svg|ttf|woff|woff2)$': 'jest-transform-stub',
},
'transform': {
'\\.[jt]sx?$': 'babel-jest',
'.+\\.(css|styl|less|sass|scss|png|jpg|svg|ttf|woff|woff2)$': 'jest-transform-stub',
},
};