Skip to content

Commit 96eb90f

Browse files
committed
Update snapshots
1 parent 67488b8 commit 96eb90f

File tree

1 file changed

+52
-52
lines changed

1 file changed

+52
-52
lines changed

packages/cli/src/tools/config/__tests__/__snapshots__/index-test.js.snap

Lines changed: 52 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,56 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

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+
354
exports[`should merge project configuration with default values 1`] = `
455
Object {
556
"assets": Array [],
@@ -56,50 +107,11 @@ Object {
56107
"android": null,
57108
"ios": null,
58109
},
59-
"reactNativePath": ".",
110+
"reactNativePath": "<<REPLACED>>",
60111
"root": "<<REPLACED>>",
61112
}
62113
`;
63114

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-
103115
exports[`should read \`rnpm\` config from a dependency and transform it to a new format 1`] = `
104116
Object {
105117
"assets": Array [],
@@ -183,15 +195,3 @@ Object {
183195
},
184196
}
185197
`;
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

Comments
 (0)