(structure: Record<string, string>)
| 133 | }) |
| 134 | |
| 135 | function createRoot(structure: Record<string, string>) { |
| 136 | const root = resolve(process.cwd(), `vitest-test-${crypto.randomUUID()}`) |
| 137 | useFS(root, structure) |
| 138 | return root |
| 139 | } |
| 140 | |
| 141 | async function vitest(config: Parameters<typeof createVitest>[1]) { |
| 142 | const v = await createVitest('test', { ...config, watch: false, config: false }, {}) |
no test coverage detected