Skip to content

Commit bb03123

Browse files
committed
test(prompts): update snapshots
1 parent eef2e42 commit bb03123

17 files changed

Lines changed: 13062 additions & 0 deletions

packages/prompts/src/__snapshots__/autocomplete.test.ts.snap

Lines changed: 895 additions & 0 deletions
Large diffs are not rendered by default.

packages/prompts/src/__snapshots__/box.test.ts.snap

Lines changed: 551 additions & 0 deletions
Large diffs are not rendered by default.

packages/prompts/src/__snapshots__/confirm.test.ts.snap

Lines changed: 481 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 263 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,263 @@
1+
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2+
3+
exports[`date (isCI = false) > can cancel 1`] = `
4+
[
5+
"<cursor.hide>",
6+
"<dim>│</fg>
7+
<cyan>◆</fg> Pick a date
8+
<cyan>│</fg> mm<dim>/</fg><dim>dd</bold><dim>/</fg><dim>yyyy</bold>
9+
<cyan>└</fg>
10+
",
11+
"<cursor.backward count=999><cursor.up count=4>",
12+
"<cursor.down count=1>",
13+
"<erase.down>",
14+
"<red>■</fg> Pick a date
15+
<dim>│</fg>",
16+
"
17+
",
18+
"<cursor.show>",
19+
]
20+
`;
21+
22+
exports[`date (isCI = false) > defaultValue used when empty submit 1`] = `
23+
[
24+
"<cursor.hide>",
25+
"<dim>│</fg>
26+
<cyan>◆</fg> Pick a date
27+
<cyan>│</fg> 12<dim>/</fg>25<dim>/</fg>2025
28+
<cyan>└</fg>
29+
",
30+
"<cursor.backward count=999><cursor.up count=4>",
31+
"<cursor.down count=1>",
32+
"<erase.down>",
33+
"<green>◇</fg> Pick a date
34+
<dim>│</fg> <dim>12/25/2025</bold>",
35+
"
36+
",
37+
"<cursor.show>",
38+
]
39+
`;
40+
41+
exports[`date (isCI = false) > renders initial value 1`] = `
42+
[
43+
"<cursor.hide>",
44+
"<dim>│</fg>
45+
<cyan>◆</fg> Pick a date
46+
<cyan>│</fg> 01<dim>/</fg>15<dim>/</fg>2025
47+
<cyan>└</fg>
48+
",
49+
"<cursor.backward count=999><cursor.up count=4>",
50+
"<cursor.down count=1>",
51+
"<erase.down>",
52+
"<green>◇</fg> Pick a date
53+
<dim>│</fg> <dim>01/15/2025</bold>",
54+
"
55+
",
56+
"<cursor.show>",
57+
]
58+
`;
59+
60+
exports[`date (isCI = false) > renders message 1`] = `
61+
[
62+
"<cursor.hide>",
63+
"<dim>│</fg>
64+
<cyan>◆</fg> Pick a date
65+
<cyan>│</fg> 01<dim>/</fg>15<dim>/</fg>2025
66+
<cyan>└</fg>
67+
",
68+
"<cursor.backward count=999><cursor.up count=4>",
69+
"<cursor.down count=1>",
70+
"<erase.down>",
71+
"<green>◇</fg> Pick a date
72+
<dim>│</fg> <dim>01/15/2025</bold>",
73+
"
74+
",
75+
"<cursor.show>",
76+
]
77+
`;
78+
79+
exports[`date (isCI = false) > renders submitted value 1`] = `
80+
[
81+
"<cursor.hide>",
82+
"<dim>│</fg>
83+
<cyan>◆</fg> Pick a date
84+
<cyan>│</fg> 06<dim>/</fg>15<dim>/</fg>2025
85+
<cyan>└</fg>
86+
",
87+
"<cursor.backward count=999><cursor.up count=4>",
88+
"<cursor.down count=1>",
89+
"<erase.down>",
90+
"<green>◇</fg> Pick a date
91+
<dim>│</fg> <dim>06/15/2025</bold>",
92+
"
93+
",
94+
"<cursor.show>",
95+
]
96+
`;
97+
98+
exports[`date (isCI = false) > supports MDY format 1`] = `
99+
[
100+
"<cursor.hide>",
101+
"<dim>│</fg>
102+
<cyan>◆</fg> Pick a date
103+
<cyan>│</fg> 01<dim>/</fg>15<dim>/</fg>2025
104+
<cyan>└</fg>
105+
",
106+
"<cursor.backward count=999><cursor.up count=4>",
107+
"<cursor.down count=1>",
108+
"<erase.down>",
109+
"<green>◇</fg> Pick a date
110+
<dim>│</fg> <dim>01/15/2025</bold>",
111+
"
112+
",
113+
"<cursor.show>",
114+
]
115+
`;
116+
117+
exports[`date (isCI = false) > withGuide: false removes guide 1`] = `
118+
[
119+
"<cursor.hide>",
120+
"<cyan>◆</fg> Pick a date
121+
01<dim>/</fg>15<dim>/</fg>2025
122+
123+
",
124+
"<cursor.backward count=999><cursor.up count=3>",
125+
"<erase.down>",
126+
"<green>◇</fg> Pick a date
127+
<dim>01/15/2025</bold>",
128+
"
129+
",
130+
"<cursor.show>",
131+
]
132+
`;
133+
134+
exports[`date (isCI = true) > can cancel 1`] = `
135+
[
136+
"<cursor.hide>",
137+
"<dim>│</fg>
138+
<cyan>◆</fg> Pick a date
139+
<cyan>│</fg> mm<dim>/</fg><dim>dd</bold><dim>/</fg><dim>yyyy</bold>
140+
<cyan>└</fg>
141+
",
142+
"<cursor.backward count=999><cursor.up count=4>",
143+
"<cursor.down count=1>",
144+
"<erase.down>",
145+
"<red>■</fg> Pick a date
146+
<dim>│</fg>",
147+
"
148+
",
149+
"<cursor.show>",
150+
]
151+
`;
152+
153+
exports[`date (isCI = true) > defaultValue used when empty submit 1`] = `
154+
[
155+
"<cursor.hide>",
156+
"<dim>│</fg>
157+
<cyan>◆</fg> Pick a date
158+
<cyan>│</fg> 12<dim>/</fg>25<dim>/</fg>2025
159+
<cyan>└</fg>
160+
",
161+
"<cursor.backward count=999><cursor.up count=4>",
162+
"<cursor.down count=1>",
163+
"<erase.down>",
164+
"<green>◇</fg> Pick a date
165+
<dim>│</fg> <dim>12/25/2025</bold>",
166+
"
167+
",
168+
"<cursor.show>",
169+
]
170+
`;
171+
172+
exports[`date (isCI = true) > renders initial value 1`] = `
173+
[
174+
"<cursor.hide>",
175+
"<dim>│</fg>
176+
<cyan>◆</fg> Pick a date
177+
<cyan>│</fg> 01<dim>/</fg>15<dim>/</fg>2025
178+
<cyan>└</fg>
179+
",
180+
"<cursor.backward count=999><cursor.up count=4>",
181+
"<cursor.down count=1>",
182+
"<erase.down>",
183+
"<green>◇</fg> Pick a date
184+
<dim>│</fg> <dim>01/15/2025</bold>",
185+
"
186+
",
187+
"<cursor.show>",
188+
]
189+
`;
190+
191+
exports[`date (isCI = true) > renders message 1`] = `
192+
[
193+
"<cursor.hide>",
194+
"<dim>│</fg>
195+
<cyan>◆</fg> Pick a date
196+
<cyan>│</fg> 01<dim>/</fg>15<dim>/</fg>2025
197+
<cyan>└</fg>
198+
",
199+
"<cursor.backward count=999><cursor.up count=4>",
200+
"<cursor.down count=1>",
201+
"<erase.down>",
202+
"<green>◇</fg> Pick a date
203+
<dim>│</fg> <dim>01/15/2025</bold>",
204+
"
205+
",
206+
"<cursor.show>",
207+
]
208+
`;
209+
210+
exports[`date (isCI = true) > renders submitted value 1`] = `
211+
[
212+
"<cursor.hide>",
213+
"<dim>│</fg>
214+
<cyan>◆</fg> Pick a date
215+
<cyan>│</fg> 06<dim>/</fg>15<dim>/</fg>2025
216+
<cyan>└</fg>
217+
",
218+
"<cursor.backward count=999><cursor.up count=4>",
219+
"<cursor.down count=1>",
220+
"<erase.down>",
221+
"<green>◇</fg> Pick a date
222+
<dim>│</fg> <dim>06/15/2025</bold>",
223+
"
224+
",
225+
"<cursor.show>",
226+
]
227+
`;
228+
229+
exports[`date (isCI = true) > supports MDY format 1`] = `
230+
[
231+
"<cursor.hide>",
232+
"<dim>│</fg>
233+
<cyan>◆</fg> Pick a date
234+
<cyan>│</fg> 01<dim>/</fg>15<dim>/</fg>2025
235+
<cyan>└</fg>
236+
",
237+
"<cursor.backward count=999><cursor.up count=4>",
238+
"<cursor.down count=1>",
239+
"<erase.down>",
240+
"<green>◇</fg> Pick a date
241+
<dim>│</fg> <dim>01/15/2025</bold>",
242+
"
243+
",
244+
"<cursor.show>",
245+
]
246+
`;
247+
248+
exports[`date (isCI = true) > withGuide: false removes guide 1`] = `
249+
[
250+
"<cursor.hide>",
251+
"<cyan>◆</fg> Pick a date
252+
01<dim>/</fg>15<dim>/</fg>2025
253+
254+
",
255+
"<cursor.backward count=999><cursor.up count=3>",
256+
"<erase.down>",
257+
"<green>◇</fg> Pick a date
258+
<dim>01/15/2025</bold>",
259+
"
260+
",
261+
"<cursor.show>",
262+
]
263+
`;

0 commit comments

Comments
 (0)