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

Function getLanguageOptions

packages/vitest/src/create/browser/creator.ts:138–151  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

136}
137
138function getLanguageOptions(): prompt.Choice[] {
139 return [
140 {
141 title: 'TypeScript',
142 description: 'Use TypeScript.',
143 value: 'ts',
144 },
145 {
146 title: 'JavaScript',
147 description: 'Use plain JavaScript.',
148 value: 'js',
149 },
150 ]
151}
152
153async function installPackages(pkgManager: string | null, packages: string[]) {
154 if (!packages.length) {

Callers 1

createFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected