File tree Expand file tree Collapse file tree 1 file changed +17
-5
lines changed Expand file tree Collapse file tree 1 file changed +17
-5
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ const tsTestFolderPath = (folderName) =>
13
13
14
14
const tsStandardConfig = {
15
15
...defaults ,
16
- displayName : 'ReactDOM' ,
16
+ displayName : 'ReactDOM 18 ' ,
17
17
preset : 'ts-jest' ,
18
18
testMatch : NORMAL_TEST_FOLDERS . map ( tsTestFolderPath ) ,
19
19
}
@@ -29,18 +29,30 @@ const rnConfig = {
29
29
} ,
30
30
}
31
31
32
- const compatEntryConfig = {
32
+ const standardReact17Config = {
33
33
...tsStandardConfig ,
34
- displayName : 'Compat ' ,
34
+ displayName : 'ReactDOM 17 ' ,
35
35
moduleNameMapper : {
36
36
'^react$' : 'react-17' ,
37
37
'^react-dom$' : 'react-dom-17' ,
38
38
'^react-test-renderer$' : 'react-test-renderer-17' ,
39
39
'^@testing-library/react$' : '@testing-library/react-12' ,
40
- '../../src/index' : '<rootDir>/src/compat' ,
40
+ } ,
41
+ }
42
+
43
+ const nextEntryConfig = {
44
+ ...tsStandardConfig ,
45
+ displayName : 'Next' ,
46
+ moduleNameMapper : {
47
+ '../../src/index' : '<rootDir>/src/next' ,
41
48
} ,
42
49
}
43
50
44
51
module . exports = {
45
- projects : [ tsStandardConfig , rnConfig , compatEntryConfig ] ,
52
+ projects : [
53
+ tsStandardConfig ,
54
+ rnConfig ,
55
+ standardReact17Config ,
56
+ nextEntryConfig ,
57
+ ] ,
46
58
}
You can’t perform that action at this time.
0 commit comments