[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.

test: specify locale in tests (#497)

authored by

James Garbutt and committed by
GitHub
(Mar 23, 2026, 10:59 PM UTC) 001351e8 336495a6

+7
+7
packages/prompts/test/date.test.ts
··· 35 35 test('renders message', async () => { 36 36 const result = prompts.date({ 37 37 message: 'Pick a date', 38 + locale: 'en-US', 38 39 initialValue: d('2025-01-15'), 39 40 input, 40 41 output, ··· 50 51 test('renders initial value', async () => { 51 52 const result = prompts.date({ 52 53 message: 'Pick a date', 54 + locale: 'en-US', 53 55 initialValue: d('2025-01-15'), 54 56 input, 55 57 output, ··· 67 69 test('can cancel', async () => { 68 70 const result = prompts.date({ 69 71 message: 'Pick a date', 72 + locale: 'en-US', 70 73 input, 71 74 output, 72 75 }); ··· 82 85 test('renders submitted value', async () => { 83 86 const result = prompts.date({ 84 87 message: 'Pick a date', 88 + locale: 'en-US', 85 89 initialValue: d('2025-06-15'), 86 90 input, 87 91 output, ··· 99 103 test('defaultValue used when empty submit', async () => { 100 104 const result = prompts.date({ 101 105 message: 'Pick a date', 106 + locale: 'en-US', 102 107 defaultValue: d('2025-12-25'), 103 108 input, 104 109 output, ··· 116 121 test('withGuide: false removes guide', async () => { 117 122 const result = prompts.date({ 118 123 message: 'Pick a date', 124 + locale: 'en-US', 119 125 withGuide: false, 120 126 initialValue: d('2025-01-15'), 121 127 input, ··· 150 156 test('minDate shows error when date before min and submit', async () => { 151 157 const result = prompts.date({ 152 158 message: 'Pick a date', 159 + locale: 'en-US', 153 160 initialValue: d('2025-01-10'), 154 161 minDate: d('2025-01-15'), 155 162 input,