You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-31 13:44:28 +03:00
Fix resolution of files for Jest
This commit is contained in:
10
__mocks__/languages.json
Normal file
10
__mocks__/languages.json
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"en": {
|
||||||
|
"fileName": "en_EN.json",
|
||||||
|
"label": "English"
|
||||||
|
},
|
||||||
|
"en-us": {
|
||||||
|
"fileName": "en_US.json",
|
||||||
|
"label": "English (US)"
|
||||||
|
}
|
||||||
|
}
|
@ -161,7 +161,11 @@
|
|||||||
],
|
],
|
||||||
"setupTestFrameworkScriptFile": "<rootDir>/test/setupTests.js",
|
"setupTestFrameworkScriptFile": "<rootDir>/test/setupTests.js",
|
||||||
"moduleNameMapper": {
|
"moduleNameMapper": {
|
||||||
"\\.(gif|png|svg|ttf|woff2)$": "<rootDir>/__mocks__/imageMock.js"
|
"\\.(gif|png|svg|ttf|woff2)$": "<rootDir>/__mocks__/imageMock.js",
|
||||||
}
|
"\\$webapp/i18n/languages.json": "<rootDir>/__mocks__/languages.json"
|
||||||
|
},
|
||||||
|
"transformIgnorePatterns": [
|
||||||
|
"/node_modules/(?!matrix-js-sdk).+$"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user