Skip to content

Commit

Permalink
Fix image import
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-Cena committed Mar 6, 2022
1 parent 5023649 commit 736cfa5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jest.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default {
},
moduleNameMapper: {
// Jest can't resolve CSS or asset imports
'^.+\\.(css|jpe?g|png|svg)$': '<rootDir>/jest/emptyModule.js',
'^.+\\.(css|jpe?g|png|svg|webp)$': '<rootDir>/jest/emptyModule.js',

// TODO we need to allow Jest to resolve core Webpack aliases automatically
'@docusaurus/(browserContext|BrowserOnly|ComponentCreator|constants|docusaurusContext|ExecutionEnvironment|Head|Interpolate|isInternalUrl|Link|Noop|renderRoutes|router|Translate|use.*)':
Expand Down

0 comments on commit 736cfa5

Please sign in to comment.