File tree Expand file tree Collapse file tree 5 files changed +22
-0
lines changed
react-router-dom-v5-compat Expand file tree Collapse file tree 5 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -6,4 +6,9 @@ module.exports = {
6
6
globals : {
7
7
__DEV__ : true ,
8
8
} ,
9
+ moduleNameMapper : {
10
+ "^@remix-run/router$" : "<rootDir>/../router/index.ts" ,
11
+ "^react-router$" : "<rootDir>/../react-router/index.ts" ,
12
+ "^react-router-dom-v5-compat$" : "<rootDir>/index.ts" ,
13
+ } ,
9
14
} ;
Original file line number Diff line number Diff line change @@ -7,4 +7,9 @@ module.exports = {
7
7
__DEV__ : true ,
8
8
} ,
9
9
setupFiles : [ "./__tests__/setup.ts" ] ,
10
+ moduleNameMapper : {
11
+ "^@remix-run/router$" : "<rootDir>/../router/index.ts" ,
12
+ "^react-router$" : "<rootDir>/../react-router/index.ts" ,
13
+ "^react-router-dom$" : "<rootDir>/index.tsx" ,
14
+ } ,
10
15
} ;
Original file line number Diff line number Diff line change @@ -11,4 +11,9 @@ module.exports = {
11
11
"<rootDir>/node_modules" , // for react-native
12
12
] ,
13
13
setupFiles : [ "<rootDir>/__tests__/setup.ts" ] ,
14
+ moduleNameMapper : {
15
+ "^@remix-run/router$" : "<rootDir>/../router/index.ts" ,
16
+ "^react-router$" : "<rootDir>/../react-router/index.ts" ,
17
+ "^react-router-native$" : "<rootDir>/index.tsx" ,
18
+ } ,
14
19
} ;
Original file line number Diff line number Diff line change @@ -7,4 +7,8 @@ module.exports = {
7
7
__DEV__ : true ,
8
8
} ,
9
9
setupFiles : [ "./__tests__/setup.ts" ] ,
10
+ moduleNameMapper : {
11
+ "^@remix-run/router$" : "<rootDir>/../router/index.ts" ,
12
+ "^react-router$" : "<rootDir>/index.ts" ,
13
+ } ,
10
14
} ;
Original file line number Diff line number Diff line change @@ -7,4 +7,7 @@ module.exports = {
7
7
__DEV__ : true ,
8
8
} ,
9
9
setupFiles : [ "./__tests__/setup.ts" ] ,
10
+ moduleNameMapper : {
11
+ "^@remix-run/router$" : "<rootDir>/index.ts" ,
12
+ } ,
10
13
} ;
You can’t perform that action at this time.
0 commit comments