Jest can now follow -common and -components imports

This commit is contained in:
Pete Miller
2022-08-18 16:00:21 -07:00
parent 429a2b39bd
commit 88d478e92b
+2
View File
@@ -67,6 +67,8 @@ module.exports = {
moduleNameMapper: {
"\\.(jpg|jpeg|png|gif|eot|otf|svg|ttf|woff|woff2)$": "<rootDir>/components/test/fileMock.ts",
"\\.(css|less)$": "identity-obj-proxy",
"^\\$web-common\\/(.*)": "<rootDir>/components/common/$1",
"^\\$web-components\\/(.*)": "<rootDir>/components/web-components/$1",
"^brave-ui$": "<rootDir>/node_modules/brave-ui/src",
"^brave-ui\\/(.*)": "<rootDir>/node_modules/brave-ui/src/$1",
// TODO(petemill): The ordering here can get problematic for devs