File tree Expand file tree Collapse file tree 3 files changed +38
-0
lines changed Expand file tree Collapse file tree 3 files changed +38
-0
lines changed Original file line number Diff line number Diff line change
1
+ node_modules /
Original file line number Diff line number Diff line change
1
+ import renderer from 'react/lib/ReactTestRenderer' ;
2
+
3
+ /* Imagine the following import is actually burried somewhere in the dependency
4
+ * chain of some module I actually want to test...
5
+ */
6
+ import ReactDOM from 'react-dom' ;
7
+
8
+ describe ( 'Failure' , ( ) => {
9
+ it ( 'fails' , ( ) => {
10
+ } ) ;
11
+ } ) ;
Original file line number Diff line number Diff line change
1
+ {
2
+ "name" : " react-test-renderer-and-react-dom-incompatible" ,
3
+ "version" : " 1.0.0" ,
4
+ "scripts" : {
5
+ "test" : " jest"
6
+ },
7
+ "babel" : {
8
+ "presets" : [" es2015" , " react" ]
9
+ },
10
+ "jest" : {
11
+ "unmockedModulePathPatterns" : [
12
+ " <rootDir>/node_modules/react/" ,
13
+ " <rootDir>/node_modules/react-dom/"
14
+ ]
15
+ },
16
+ "dependencies" : {
17
+ "react" : " ^15.3.0" ,
18
+ "react-dom" : " ^15.3.0"
19
+ },
20
+ "devDependencies" : {
21
+ "babel-jest" : " ^14.0.2" ,
22
+ "babel-preset-es2015" : " ^6.9.0" ,
23
+ "babel-preset-react" : " ^6.11.1" ,
24
+ "jest-cli" : " ^14.0.1"
25
+ }
26
+ }
You can’t perform that action at this time.
0 commit comments