MCPcopy
hub / github.com/vitejs/vite / run

Function run

packages/create-vite/__tests__/cli.spec.ts:17–22  ·  view source on GitHub ↗
(args: string[], options?: SyncOptions)

Source from the content-addressed store, hash-verified

15)
16
17const run = (args: string[], options?: SyncOptions) => {
18 return execaCommandSync(`node ${CLI_PATH} ${args.join(' ')}`, {
19 env: { ...process.env, _VITE_TEST_CLI: 'true' },
20 ...options,
21 })
22}
23
24// Helper to create a non-empty directory
25const createNonEmptyDir = (overrideFolder?: string) => {

Callers 1

cli.spec.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected