Skip to content

Commit 9686b0e

Browse files
test(e2e): update snapshots (#2476)
* e2e: sync snapshot with latest react native major * e2e: update default options snapshot
1 parent b724448 commit 9686b0e

File tree

3 files changed

+23
-30
lines changed

3 files changed

+23
-30
lines changed

__e2e__/__snapshots__/config.test.ts.snap

Lines changed: 21 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,29 @@ exports[`shows up current config without unnecessary output 1`] = `
44
{
55
"root": "<<REPLACED_ROOT>>/TestProject",
66
"reactNativePath": "<<REPLACED_ROOT>>/TestProject/node_modules/react-native",
7-
"reactNativeVersion": "0.74",
7+
"reactNativeVersion": "0.75",
88
"dependencies": {},
99
"commands": [
10+
{
11+
"name": "bundle",
12+
"description": "Build the bundle for the provided JavaScript entry file.",
13+
"options": [
14+
"<<REPLACED>>"
15+
]
16+
},
17+
{
18+
"name": "start",
19+
"description": "Start the React Native development server.",
20+
"options": [
21+
"<<REPLACED>>"
22+
]
23+
},
24+
{
25+
"name": "codegen",
26+
"options": [
27+
"<<REPLACED>>"
28+
]
29+
},
1030
{
1131
"name": "log-ios",
1232
"description": "starts iOS device syslog tail",
@@ -51,33 +71,6 @@ exports[`shows up current config without unnecessary output 1`] = `
5171
"options": [
5272
"<<REPLACED>>"
5373
]
54-
},
55-
{
56-
"name": "bundle",
57-
"description": "Build the bundle for the provided JavaScript entry file.",
58-
"options": [
59-
"<<REPLACED>>"
60-
]
61-
},
62-
{
63-
"name": "ram-bundle",
64-
"description": "Build the RAM bundle for the provided JavaScript entry file. See https://reactnative.dev/docs/ram-bundles-inline-requires.",
65-
"options": [
66-
"<<REPLACED>>"
67-
]
68-
},
69-
{
70-
"name": "start",
71-
"description": "Start the React Native development server.",
72-
"options": [
73-
"<<REPLACED>>"
74-
]
75-
},
76-
{
77-
"name": "codegen",
78-
"options": [
79-
"<<REPLACED>>"
80-
]
8174
}
8275
],
8376
"healthChecks": [],

__e2e__/__snapshots__/default.test.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ exports[`shows up help information without passing in any args 1`] = `
44
"Usage: bin [command] [options]
55
66
Options:
7-
-v Output the current version
7+
-v --version Output the current version
88
-h, --help display help for command
99
1010
Commands:

__e2e__/root.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ beforeAll(() => {
1616
writeFiles(DIR, {});
1717

1818
// Initialise React Native project
19-
runCLI(DIR, ['init', 'TestProject', '--install-pods']);
19+
runCLI(DIR, ['init', 'TestProject', `--pm`, 'npm', `--install-pods`]);
2020

2121
// Link CLI to the project
2222
spawnScript('yarn', ['link', __dirname, '--all'], {

0 commit comments

Comments
 (0)