MCPcopy
hub / github.com/vitest-dev/vitest / inputProjectName

Function inputProjectName

packages/vitest/src/node/stdin.ts:200–212  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

198 }
199
200 async function inputProjectName() {
201 off()
202 const { filter = '' }: { filter: string } = await prompt([
203 {
204 name: 'filter',
205 type: 'text',
206 message: 'Input a single project name',
207 initial: ctx.config.project[0] || '',
208 },
209 ])
210 on()
211 await ctx.changeProjectName(filter.trim())
212 }
213
214 async function inputFilePattern() {
215 off()

Callers 1

_keypressHandlerFunction · 0.85

Calls 3

changeProjectNameMethod · 0.80
offFunction · 0.70
onFunction · 0.70

Tested by

no test coverage detected