mock fontsource

This commit is contained in:
Laila Los
2022-11-25 16:09:48 +01:00
parent adeaa60b28
commit a2e2c6b1ed
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
export default {};
+1
View File
@@ -78,6 +78,7 @@ module.exports = {
// Some of these should turn into true mocks, instead of this module name mapping hack.
moduleNameMapper: {
"\\.(css|scss)$": "<rootDir>/tests/jest/__mocks__/style.js",
"^@fontsource/.*": "<rootDir>/tests/jest/__mocks__/font.js",
"^config$": "<rootDir>/tests/jest/__mocks__/config.js",
"utils/localization$": "<rootDir>/tests/jest/__mocks__/localization.js",
"viz/trackster$": "<rootDir>/tests/jest/__mocks__/trackster.js",