Skip to content

Commit e18df9e

Browse files
committed
Update config in package.json for running test via Jest
1 parent 6a1e211 commit e18df9e

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

package.json

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,18 @@
114114
"[/\\\\]node_modules[/\\\\].+\\.(js|jsx|ts|tsx)$",
115115
"^.+\\.module\\.(css|sass|scss)$"
116116
],
117-
"modulePaths": [],
117+
"modulePaths": [
118+
".",
119+
"src",
120+
"node_modules"
121+
],
118122
"moduleNameMapper": {
119123
"^react-native$": "react-native-web",
120-
"^.+\\.module\\.(css|sass|scss)$": "identity-obj-proxy"
124+
"^.+\\.module\\.(css|sass|scss)$": "identity-obj-proxy",
125+
"^Assets(.*)$": "<rootDir>/src/assets/$1",
126+
"^Components(.*)$": "<rootDir>/src/components/$1",
127+
"^Pages(.*)$": "<rootDir>/src/pages/$1",
128+
"^Services(.*)$": "<rootDir>/src/services/$1"
121129
},
122130
"moduleFileExtensions": [
123131
"web.js",

0 commit comments

Comments
 (0)