[READ-ONLY] Mirror of https://github.com/bombshell-dev/clack. Effortlessly build beautiful command-line apps bomb.sh/docs/clack/basics/getting-started/
cli command-line command-line-app node prompt prompts
5

Configure Feed

Select the types of activity you want to include in your feed.

fix: update snapshots to reflect changes in text prompt rendering

Paul Valladares (Dec 5, 2025, 5:58 PM -0600) 5232930e 75170763

+178 -178
+178 -178
packages/prompts/test/__snapshots__/text.test.ts.snap
··· 3 3 exports[`text (isCI = false) > can be aborted by a signal 1`] = ` 4 4 [ 5 5 "<cursor.hide>", 6 - "│ 7 - ◆ foo 8 - │ _ 9 - └ 6 + "│ 7 + ◆ foo 8 + │ _ 9 + 10 10 ", 11 11 " 12 12 ", ··· 17 17 exports[`text (isCI = false) > can cancel 1`] = ` 18 18 [ 19 19 "<cursor.hide>", 20 - "│ 21 - ◆ foo 22 - │ _ 23 - └ 20 + "│ 21 + ◆ foo 22 + │ _ 23 + 24 24 ", 25 25 "<cursor.backward count=999><cursor.up count=4>", 26 26 "<cursor.down count=1>", 27 27 "<erase.down>", 28 - "■ foo 29 - │", 28 + "■ foo 29 + │", 30 30 " 31 31 ", 32 32 "<cursor.show>", ··· 36 36 exports[`text (isCI = false) > defaultValue sets the value but does not render 1`] = ` 37 37 [ 38 38 "<cursor.hide>", 39 - "│ 40 - ◆ foo 41 - │ _ 42 - └ 39 + "│ 40 + ◆ foo 41 + │ _ 42 + 43 43 ", 44 44 "<cursor.backward count=999><cursor.up count=4>", 45 45 "<cursor.down count=1>", 46 46 "<erase.down>", 47 - "◇ foo 48 - │ bar", 47 + "◇ foo 48 + │ bar", 49 49 " 50 50 ", 51 51 "<cursor.show>", ··· 55 55 exports[`text (isCI = false) > empty string when no value and no default 1`] = ` 56 56 [ 57 57 "<cursor.hide>", 58 - "│ 59 - ◆ foo 60 - │   (hit Enter to use default) 61 - └ 58 + "│ 59 + ◆ foo 60 + │ (hit Enter to use default) 61 + 62 62 ", 63 63 "<cursor.backward count=999><cursor.up count=4>", 64 64 "<cursor.down count=1>", 65 65 "<erase.down>", 66 - "◇ foo 67 - │", 66 + "◇ foo 67 + │", 68 68 " 69 69 ", 70 70 "<cursor.show>", ··· 74 74 exports[`text (isCI = false) > global withGuide: false removes guide 1`] = ` 75 75 [ 76 76 "<cursor.hide>", 77 - "◆ foo 78 - _ 77 + "◆ foo 78 + _ 79 79 80 80 ", 81 81 "<cursor.backward count=999><cursor.up count=3>", 82 82 "<erase.down>", 83 - "◇ foo 83 + "◇ foo 84 84 ", 85 85 " 86 86 ", ··· 91 91 exports[`text (isCI = false) > placeholder is not used as value when pressing enter 1`] = ` 92 92 [ 93 93 "<cursor.hide>", 94 - "│ 95 - ◆ foo 96 - │   (hit Enter to use default) 97 - └ 94 + "│ 95 + ◆ foo 96 + │ (hit Enter to use default) 97 + 98 98 ", 99 99 "<cursor.backward count=999><cursor.up count=4>", 100 100 "<cursor.down count=1>", 101 101 "<erase.down>", 102 - "◇ foo 103 - │ default-value", 102 + "◇ foo 103 + │ default-value", 104 104 " 105 105 ", 106 106 "<cursor.show>", ··· 110 110 exports[`text (isCI = false) > renders cancelled value if one set 1`] = ` 111 111 [ 112 112 "<cursor.hide>", 113 - "│ 114 - ◆ foo 115 - │ _ 116 - └ 113 + "│ 114 + ◆ foo 115 + │ _ 116 + 117 117 ", 118 118 "<cursor.backward count=999><cursor.up count=4>", 119 119 "<cursor.down count=2>", 120 120 "<erase.line><cursor.left count=1>", 121 - "│ x█", 121 + "│ x█", 122 122 "<cursor.down count=2>", 123 123 "<cursor.backward count=999><cursor.up count=4>", 124 124 "<cursor.down count=2>", 125 125 "<erase.line><cursor.left count=1>", 126 - "│ xy█", 126 + "│ xy█", 127 127 "<cursor.down count=2>", 128 128 "<cursor.backward count=999><cursor.up count=4>", 129 129 "<cursor.down count=1>", 130 130 "<erase.down>", 131 - "■ foo 132 - │ xy 133 - │", 131 + "■ foo 132 + │ xy 133 + │", 134 134 " 135 135 ", 136 136 "<cursor.show>", ··· 140 140 exports[`text (isCI = false) > renders message 1`] = ` 141 141 [ 142 142 "<cursor.hide>", 143 - "│ 144 - ◆ foo 145 - │ _ 146 - └ 143 + "│ 144 + ◆ foo 145 + │ _ 146 + 147 147 ", 148 148 "<cursor.backward count=999><cursor.up count=4>", 149 149 "<cursor.down count=1>", 150 150 "<erase.down>", 151 - "◇ foo 152 - │", 151 + "◇ foo 152 + │", 153 153 " 154 154 ", 155 155 "<cursor.show>", ··· 159 159 exports[`text (isCI = false) > renders placeholder if set 1`] = ` 160 160 [ 161 161 "<cursor.hide>", 162 - "│ 163 - ◆ foo 164 - │ bar 165 - └ 162 + "│ 163 + ◆ foo 164 + │ bar 165 + 166 166 ", 167 167 "<cursor.backward count=999><cursor.up count=4>", 168 168 "<cursor.down count=1>", 169 169 "<erase.down>", 170 - "◇ foo 171 - │", 170 + "◇ foo 171 + │", 172 172 " 173 173 ", 174 174 "<cursor.show>", ··· 178 178 exports[`text (isCI = false) > renders submitted value 1`] = ` 179 179 [ 180 180 "<cursor.hide>", 181 - "│ 182 - ◆ foo 183 - │ _ 184 - └ 181 + "│ 182 + ◆ foo 183 + │ _ 184 + 185 185 ", 186 186 "<cursor.backward count=999><cursor.up count=4>", 187 187 "<cursor.down count=2>", 188 188 "<erase.line><cursor.left count=1>", 189 - "│ x█", 189 + "│ x█", 190 190 "<cursor.down count=2>", 191 191 "<cursor.backward count=999><cursor.up count=4>", 192 192 "<cursor.down count=2>", 193 193 "<erase.line><cursor.left count=1>", 194 - "│ xy█", 194 + "│ xy█", 195 195 "<cursor.down count=2>", 196 196 "<cursor.backward count=999><cursor.up count=4>", 197 197 "<cursor.down count=1>", 198 198 "<erase.down>", 199 - "◇ foo 200 - │ xy", 199 + "◇ foo 200 + │ xy", 201 201 " 202 202 ", 203 203 "<cursor.show>", ··· 207 207 exports[`text (isCI = false) > validation errors render and clear (using Error) 1`] = ` 208 208 [ 209 209 "<cursor.hide>", 210 - "│ 211 - ◆ foo 212 - │ _ 213 - └ 210 + "│ 211 + ◆ foo 212 + │ _ 213 + 214 214 ", 215 215 "<cursor.backward count=999><cursor.up count=4>", 216 216 "<cursor.down count=2>", 217 217 "<erase.line><cursor.left count=1>", 218 - "│ x█", 218 + "│ x█", 219 219 "<cursor.down count=2>", 220 220 "<cursor.backward count=999><cursor.up count=4>", 221 221 "<cursor.down count=1>", 222 222 "<erase.down>", 223 - "▲ foo 224 - │ x█ 225 - └ should be xy 223 + "▲ foo 224 + │ x█ 225 + └ should be xy 226 226 ", 227 227 "<cursor.backward count=999><cursor.up count=4>", 228 228 "<cursor.down count=1>", 229 229 "<erase.down>", 230 - "◆ foo 231 - │ xy█ 232 - └ 230 + "◆ foo 231 + │ xy█ 232 + 233 233 ", 234 234 "<cursor.backward count=999><cursor.up count=4>", 235 235 "<cursor.down count=1>", 236 236 "<erase.down>", 237 - "◇ foo 238 - │ xy", 237 + "◇ foo 238 + │ xy", 239 239 " 240 240 ", 241 241 "<cursor.show>", ··· 245 245 exports[`text (isCI = false) > validation errors render and clear 1`] = ` 246 246 [ 247 247 "<cursor.hide>", 248 - "│ 249 - ◆ foo 250 - │ _ 251 - └ 248 + "│ 249 + ◆ foo 250 + │ _ 251 + 252 252 ", 253 253 "<cursor.backward count=999><cursor.up count=4>", 254 254 "<cursor.down count=2>", 255 255 "<erase.line><cursor.left count=1>", 256 - "│ x█", 256 + "│ x█", 257 257 "<cursor.down count=2>", 258 258 "<cursor.backward count=999><cursor.up count=4>", 259 259 "<cursor.down count=1>", 260 260 "<erase.down>", 261 - "▲ foo 262 - │ x█ 263 - └ should be xy 261 + "▲ foo 262 + │ x█ 263 + └ should be xy 264 264 ", 265 265 "<cursor.backward count=999><cursor.up count=4>", 266 266 "<cursor.down count=1>", 267 267 "<erase.down>", 268 - "◆ foo 269 - │ xy█ 270 - └ 268 + "◆ foo 269 + │ xy█ 270 + 271 271 ", 272 272 "<cursor.backward count=999><cursor.up count=4>", 273 273 "<cursor.down count=1>", 274 274 "<erase.down>", 275 - "◇ foo 276 - │ xy", 275 + "◇ foo 276 + │ xy", 277 277 " 278 278 ", 279 279 "<cursor.show>", ··· 283 283 exports[`text (isCI = false) > withGuide: false removes guide 1`] = ` 284 284 [ 285 285 "<cursor.hide>", 286 - "◆ foo 287 - _ 286 + "◆ foo 287 + _ 288 288 289 289 ", 290 290 "<cursor.backward count=999><cursor.up count=3>", 291 291 "<erase.down>", 292 - "◇ foo 292 + "◇ foo 293 293 ", 294 294 " 295 295 ", ··· 300 300 exports[`text (isCI = true) > can be aborted by a signal 1`] = ` 301 301 [ 302 302 "<cursor.hide>", 303 - "│ 304 - ◆ foo 305 - │ _ 306 - └ 303 + "│ 304 + ◆ foo 305 + │ _ 306 + 307 307 ", 308 308 " 309 309 ", ··· 314 314 exports[`text (isCI = true) > can cancel 1`] = ` 315 315 [ 316 316 "<cursor.hide>", 317 - "│ 318 - ◆ foo 319 - │ _ 320 - └ 317 + "│ 318 + ◆ foo 319 + │ _ 320 + 321 321 ", 322 322 "<cursor.backward count=999><cursor.up count=4>", 323 323 "<cursor.down count=1>", 324 324 "<erase.down>", 325 - "■ foo 326 - │", 325 + "■ foo 326 + │", 327 327 " 328 328 ", 329 329 "<cursor.show>", ··· 333 333 exports[`text (isCI = true) > defaultValue sets the value but does not render 1`] = ` 334 334 [ 335 335 "<cursor.hide>", 336 - "│ 337 - ◆ foo 338 - │ _ 339 - └ 336 + "│ 337 + ◆ foo 338 + │ _ 339 + 340 340 ", 341 341 "<cursor.backward count=999><cursor.up count=4>", 342 342 "<cursor.down count=1>", 343 343 "<erase.down>", 344 - "◇ foo 345 - │ bar", 344 + "◇ foo 345 + │ bar", 346 346 " 347 347 ", 348 348 "<cursor.show>", ··· 352 352 exports[`text (isCI = true) > empty string when no value and no default 1`] = ` 353 353 [ 354 354 "<cursor.hide>", 355 - "│ 356 - ◆ foo 357 - │   (hit Enter to use default) 358 - └ 355 + "│ 356 + ◆ foo 357 + │ (hit Enter to use default) 358 + 359 359 ", 360 360 "<cursor.backward count=999><cursor.up count=4>", 361 361 "<cursor.down count=1>", 362 362 "<erase.down>", 363 - "◇ foo 364 - │", 363 + "◇ foo 364 + │", 365 365 " 366 366 ", 367 367 "<cursor.show>", ··· 371 371 exports[`text (isCI = true) > global withGuide: false removes guide 1`] = ` 372 372 [ 373 373 "<cursor.hide>", 374 - "◆ foo 375 - _ 374 + "◆ foo 375 + _ 376 376 377 377 ", 378 378 "<cursor.backward count=999><cursor.up count=3>", 379 379 "<erase.down>", 380 - "◇ foo 380 + "◇ foo 381 381 ", 382 382 " 383 383 ", ··· 388 388 exports[`text (isCI = true) > placeholder is not used as value when pressing enter 1`] = ` 389 389 [ 390 390 "<cursor.hide>", 391 - "│ 392 - ◆ foo 393 - │   (hit Enter to use default) 394 - └ 391 + "│ 392 + ◆ foo 393 + │ (hit Enter to use default) 394 + 395 395 ", 396 396 "<cursor.backward count=999><cursor.up count=4>", 397 397 "<cursor.down count=1>", 398 398 "<erase.down>", 399 - "◇ foo 400 - │ default-value", 399 + "◇ foo 400 + │ default-value", 401 401 " 402 402 ", 403 403 "<cursor.show>", ··· 407 407 exports[`text (isCI = true) > renders cancelled value if one set 1`] = ` 408 408 [ 409 409 "<cursor.hide>", 410 - "│ 411 - ◆ foo 412 - │ _ 413 - └ 410 + "│ 411 + ◆ foo 412 + │ _ 413 + 414 414 ", 415 415 "<cursor.backward count=999><cursor.up count=4>", 416 416 "<cursor.down count=2>", 417 417 "<erase.line><cursor.left count=1>", 418 - "│ x█", 418 + "│ x█", 419 419 "<cursor.down count=2>", 420 420 "<cursor.backward count=999><cursor.up count=4>", 421 421 "<cursor.down count=2>", 422 422 "<erase.line><cursor.left count=1>", 423 - "│ xy█", 423 + "│ xy█", 424 424 "<cursor.down count=2>", 425 425 "<cursor.backward count=999><cursor.up count=4>", 426 426 "<cursor.down count=1>", 427 427 "<erase.down>", 428 - "■ foo 429 - │ xy 430 - │", 428 + "■ foo 429 + │ xy 430 + │", 431 431 " 432 432 ", 433 433 "<cursor.show>", ··· 437 437 exports[`text (isCI = true) > renders message 1`] = ` 438 438 [ 439 439 "<cursor.hide>", 440 - "│ 441 - ◆ foo 442 - │ _ 443 - └ 440 + "│ 441 + ◆ foo 442 + │ _ 443 + 444 444 ", 445 445 "<cursor.backward count=999><cursor.up count=4>", 446 446 "<cursor.down count=1>", 447 447 "<erase.down>", 448 - "◇ foo 449 - │", 448 + "◇ foo 449 + │", 450 450 " 451 451 ", 452 452 "<cursor.show>", ··· 456 456 exports[`text (isCI = true) > renders placeholder if set 1`] = ` 457 457 [ 458 458 "<cursor.hide>", 459 - "│ 460 - ◆ foo 461 - │ bar 462 - └ 459 + "│ 460 + ◆ foo 461 + │ bar 462 + 463 463 ", 464 464 "<cursor.backward count=999><cursor.up count=4>", 465 465 "<cursor.down count=1>", 466 466 "<erase.down>", 467 - "◇ foo 468 - │", 467 + "◇ foo 468 + │", 469 469 " 470 470 ", 471 471 "<cursor.show>", ··· 475 475 exports[`text (isCI = true) > renders submitted value 1`] = ` 476 476 [ 477 477 "<cursor.hide>", 478 - "│ 479 - ◆ foo 480 - │ _ 481 - └ 478 + "│ 479 + ◆ foo 480 + │ _ 481 + 482 482 ", 483 483 "<cursor.backward count=999><cursor.up count=4>", 484 484 "<cursor.down count=2>", 485 485 "<erase.line><cursor.left count=1>", 486 - "│ x█", 486 + "│ x█", 487 487 "<cursor.down count=2>", 488 488 "<cursor.backward count=999><cursor.up count=4>", 489 489 "<cursor.down count=2>", 490 490 "<erase.line><cursor.left count=1>", 491 - "│ xy█", 491 + "│ xy█", 492 492 "<cursor.down count=2>", 493 493 "<cursor.backward count=999><cursor.up count=4>", 494 494 "<cursor.down count=1>", 495 495 "<erase.down>", 496 - "◇ foo 497 - │ xy", 496 + "◇ foo 497 + │ xy", 498 498 " 499 499 ", 500 500 "<cursor.show>", ··· 504 504 exports[`text (isCI = true) > validation errors render and clear (using Error) 1`] = ` 505 505 [ 506 506 "<cursor.hide>", 507 - "│ 508 - ◆ foo 509 - │ _ 510 - └ 507 + "│ 508 + ◆ foo 509 + │ _ 510 + 511 511 ", 512 512 "<cursor.backward count=999><cursor.up count=4>", 513 513 "<cursor.down count=2>", 514 514 "<erase.line><cursor.left count=1>", 515 - "│ x█", 515 + "│ x█", 516 516 "<cursor.down count=2>", 517 517 "<cursor.backward count=999><cursor.up count=4>", 518 518 "<cursor.down count=1>", 519 519 "<erase.down>", 520 - "▲ foo 521 - │ x█ 522 - └ should be xy 520 + "▲ foo 521 + │ x█ 522 + └ should be xy 523 523 ", 524 524 "<cursor.backward count=999><cursor.up count=4>", 525 525 "<cursor.down count=1>", 526 526 "<erase.down>", 527 - "◆ foo 528 - │ xy█ 529 - └ 527 + "◆ foo 528 + │ xy█ 529 + 530 530 ", 531 531 "<cursor.backward count=999><cursor.up count=4>", 532 532 "<cursor.down count=1>", 533 533 "<erase.down>", 534 - "◇ foo 535 - │ xy", 534 + "◇ foo 535 + │ xy", 536 536 " 537 537 ", 538 538 "<cursor.show>", ··· 542 542 exports[`text (isCI = true) > validation errors render and clear 1`] = ` 543 543 [ 544 544 "<cursor.hide>", 545 - "│ 546 - ◆ foo 547 - │ _ 548 - └ 545 + "│ 546 + ◆ foo 547 + │ _ 548 + 549 549 ", 550 550 "<cursor.backward count=999><cursor.up count=4>", 551 551 "<cursor.down count=2>", 552 552 "<erase.line><cursor.left count=1>", 553 - "│ x█", 553 + "│ x█", 554 554 "<cursor.down count=2>", 555 555 "<cursor.backward count=999><cursor.up count=4>", 556 556 "<cursor.down count=1>", 557 557 "<erase.down>", 558 - "▲ foo 559 - │ x█ 560 - └ should be xy 558 + "▲ foo 559 + │ x█ 560 + └ should be xy 561 561 ", 562 562 "<cursor.backward count=999><cursor.up count=4>", 563 563 "<cursor.down count=1>", 564 564 "<erase.down>", 565 - "◆ foo 566 - │ xy█ 567 - └ 565 + "◆ foo 566 + │ xy█ 567 + 568 568 ", 569 569 "<cursor.backward count=999><cursor.up count=4>", 570 570 "<cursor.down count=1>", 571 571 "<erase.down>", 572 - "◇ foo 573 - │ xy", 572 + "◇ foo 573 + │ xy", 574 574 " 575 575 ", 576 576 "<cursor.show>", ··· 580 580 exports[`text (isCI = true) > withGuide: false removes guide 1`] = ` 581 581 [ 582 582 "<cursor.hide>", 583 - "◆ foo 584 - _ 583 + "◆ foo 584 + _ 585 585 586 586 ", 587 587 "<cursor.backward count=999><cursor.up count=3>", 588 588 "<erase.down>", 589 - "◇ foo 589 + "◇ foo 590 590 ", 591 591 " 592 592 ",