Jest can now follow -common and -components imports
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user