You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/__snapshots__/cli.test.ts.snap
+15-19Lines changed: 15 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,7 @@
2
2
3
3
exports[`cli completion tests for citty > cli option completion tests > should complete option for partial input '{partial: '--p', expected: '--port'}' 1`] =`
4
4
"--port Specify port
5
+
:4
5
6
"
6
7
`;
7
8
@@ -12,48 +13,41 @@ exports[`cli completion tests for citty > cli option exclusion tests > should no
12
13
"
13
14
`;
14
15
15
-
exports[`cli completion tests for citty > cli option exclusion tests > should not suggest already specified option '{specified: '--port', shouldNotContain: '--port'}' 1`] =`
16
-
"--mode Set env mode
17
-
--logLevel info | warn | error | silent
18
-
:4
19
-
"
20
-
`;
16
+
exports[`cli completion tests for citty > cli option value handling > should handle unknown options with no completions 1`] =`":4"`;
21
17
22
-
exports[`cli completion tests for citty > cli option value handling > should handle conflicting options appropriately 1`] =`
18
+
exports[`cli completion tests for citty > cli option value handling > should not show duplicate options 1`] =`
23
19
"--mode Set env mode
24
20
--logLevel info | warn | error | silent
25
21
:4
26
22
"
27
23
`;
28
24
29
-
exports[`cli completion tests for citty > cli option value handling > should handle unknown options with no completions 1`] =`""`;
30
-
31
25
exports[`cli completion tests for citty > cli option value handling > should resolve config option values correctly 1`] =`
32
-
"vite.config.js
33
-
vite.config.ts
26
+
"vite.config.ts Vite config file
27
+
vite.config.js Vite config file
28
+
:4
34
29
"
35
30
`;
36
31
37
32
exports[`cli completion tests for citty > cli option value handling > should resolve port value correctly 1`] =`
38
33
"3000 Development server port
34
+
8080 Alternative port
35
+
:4
39
36
"
40
37
`;
41
38
42
39
exports[`cli completion tests for citty > edge case completions for end with space > should keep suggesting the --port option if user typed partial but didn't end with space 1`] =`
43
-
"--port Specify port
40
+
":0
44
41
"
45
42
`;
46
43
47
44
exports[`cli completion tests for citty > edge case completions for end with space > should suggest port values if user ends with space after \`--port\` 1`] =`
48
-
"3000 Development server port
49
-
8080 Alternative port
45
+
":0
50
46
"
51
47
`;
52
48
53
49
exports[`cli completion tests for citty > edge case completions for end with space > should suggest port values if user typed \`--port=\` and hasn't typed a space or value yet 1`] =`
0 commit comments