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
+18-8Lines changed: 18 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -108,17 +108,20 @@ lint Lint project
108
108
`;
109
109
110
110
exports[`cli completion tests for citty > cli option completion tests > should complete option for partial input '{partial: '--p', expected: '--port'}' 1`] =`
111
-
":4
111
+
"--port Specify port
112
+
:4
112
113
"
113
114
`;
114
115
115
116
exports[`cli completion tests for citty > cli option completion tests > should complete option for partial input '{partial: '-H', expected: '-H'}' 1`] =`
116
-
":4
117
+
"-H Specify hostname
118
+
:4
117
119
"
118
120
`;
119
121
120
122
exports[`cli completion tests for citty > cli option completion tests > should complete option for partial input '{partial: '-p', expected: '-p'}' 1`] =`
121
-
":4
123
+
"-p Specify port
124
+
:4
122
125
"
123
126
`;
124
127
@@ -145,22 +148,28 @@ vite.config.js Vite config file
145
148
`;
146
149
147
150
exports[`cli completion tests for citty > cli option value handling > should resolve port value correctly 1`] =`
148
-
":4
151
+
"--port=3000 Development server port
152
+
:4
149
153
"
150
154
`;
151
155
152
156
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`] =`
153
-
":4
157
+
"--port Specify port
158
+
:4
154
159
"
155
160
`;
156
161
157
162
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`] =`
158
-
":4
163
+
"3000 Development server port
164
+
8080 Alternative port
165
+
:4
159
166
"
160
167
`;
161
168
162
169
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`] =`
163
-
":4
170
+
"--port=3000 Development server port
171
+
--port=8080 Alternative port
172
+
:4
164
173
"
165
174
`;
166
175
@@ -170,7 +179,8 @@ exports[`cli completion tests for citty > short flag handling > should handle gl
170
179
`;
171
180
172
181
exports[`cli completion tests for citty > short flag handling > should handle short flag value completion 1`] =`
0 commit comments