|
1 | 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP |
2 | 2 |
|
| 3 | +exports[`should automatically put "react-native" into haste config 1`] = ` |
| 4 | +Object { |
| 5 | + "platforms": Array [ |
| 6 | + "ios", |
| 7 | + "android", |
| 8 | + ], |
| 9 | + "providesModuleNodeModules": Array [ |
| 10 | + "react-native", |
| 11 | + ], |
| 12 | +} |
| 13 | +`; |
| 14 | + |
| 15 | +exports[`should have a valid structure by default 1`] = ` |
| 16 | +Object { |
| 17 | + "assets": Array [], |
| 18 | + "commands": Array [], |
| 19 | + "dependencies": Object {}, |
| 20 | + "haste": Object { |
| 21 | + "platforms": Array [], |
| 22 | + "providesModuleNodeModules": Array [], |
| 23 | + }, |
| 24 | + "platforms": Object {}, |
| 25 | + "project": Object {}, |
| 26 | + "reactNativePath": "<<REPLACED>>", |
| 27 | + "root": "<<REPLACED>>", |
| 28 | +} |
| 29 | +`; |
| 30 | + |
| 31 | +exports[`should load an out-of-tree "windows" platform that ships with a dependency 1`] = ` |
| 32 | +Object { |
| 33 | + "haste": Object { |
| 34 | + "platforms": Array [ |
| 35 | + "windows", |
| 36 | + ], |
| 37 | + "providesModuleNodeModules": Array [ |
| 38 | + "react-native-windows", |
| 39 | + ], |
| 40 | + }, |
| 41 | + "platforms": Object { |
| 42 | + "windows": Object {}, |
| 43 | + }, |
| 44 | +} |
| 45 | +`; |
| 46 | + |
| 47 | +exports[`should load commands from "react-native-foo" and "react-native-bar" packages 1`] = ` |
| 48 | +Array [ |
| 49 | + "react-native-foo/command-foo.js", |
| 50 | + "react-native-bar/command-bar.js", |
| 51 | +] |
| 52 | +`; |
| 53 | + |
3 | 54 | exports[`should merge project configuration with default values 1`] = ` |
4 | 55 | Object { |
5 | 56 | "assets": Array [], |
@@ -56,50 +107,11 @@ Object { |
56 | 107 | "android": null, |
57 | 108 | "ios": null, |
58 | 109 | }, |
59 | | - "reactNativePath": ".", |
| 110 | + "reactNativePath": "<<REPLACED>>", |
60 | 111 | "root": "<<REPLACED>>", |
61 | 112 | } |
62 | 113 | `; |
63 | 114 |
|
64 | | -exports[`should have a valid structure by default 1`] = ` |
65 | | -Object { |
66 | | - "assets": Array [], |
67 | | - "commands": Array [], |
68 | | - "dependencies": Object {}, |
69 | | - "haste": Object { |
70 | | - "platforms": Array [], |
71 | | - "providesModuleNodeModules": Array [], |
72 | | - }, |
73 | | - "platforms": Object {}, |
74 | | - "project": Object {}, |
75 | | - "reactNativePath": ".", |
76 | | - "root": "<<REPLACED>>", |
77 | | -} |
78 | | -`; |
79 | | - |
80 | | -exports[`should load an out-of-tree "windows" platform that ships with a dependency 1`] = ` |
81 | | -Object { |
82 | | - "haste": Object { |
83 | | - "platforms": Array [ |
84 | | - "windows", |
85 | | - ], |
86 | | - "providesModuleNodeModules": Array [ |
87 | | - "react-native-windows", |
88 | | - ], |
89 | | - }, |
90 | | - "platforms": Object { |
91 | | - "windows": Object {}, |
92 | | - }, |
93 | | -} |
94 | | -`; |
95 | | - |
96 | | -exports[`should load commands from "react-native-foo" and "react-native-bar" packages 1`] = ` |
97 | | -Array [ |
98 | | - "react-native-foo/command-foo.js", |
99 | | - "react-native-bar/command-bar.js", |
100 | | -] |
101 | | -`; |
102 | | - |
103 | 115 | exports[`should read \`rnpm\` config from a dependency and transform it to a new format 1`] = ` |
104 | 116 | Object { |
105 | 117 | "assets": Array [], |
@@ -183,15 +195,3 @@ Object { |
183 | 195 | }, |
184 | 196 | } |
185 | 197 | `; |
186 | | - |
187 | | -exports[`should automatically put "react-native" into haste config 1`] = ` |
188 | | -Object { |
189 | | - "platforms": Array [ |
190 | | - "ios", |
191 | | - "android", |
192 | | - ], |
193 | | - "providesModuleNodeModules": Array [ |
194 | | - "react-native", |
195 | | - ], |
196 | | -} |
197 | | -`; |
0 commit comments