refactor(lqip-loader): split test files (#6858)

This commit is contained in:
Joshua Chen 2022-03-06 18:34:04 +08:00 committed by GitHub
parent f763ac13a9
commit 5e2168ea22
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 33 additions and 25 deletions

View file

@ -34,7 +34,7 @@ export default {
},
moduleNameMapper: {
// Jest can't resolve CSS or asset imports
'^.+\\.(css|jpg|jpeg|png|svg)$': '<rootDir>/jest/emptyModule.js',
'^.+\\.(css|jpe?g|png|svg)$': '<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.*)':