(cliOptions: TestUserConfig, configValue: TestUserConfig = {}, viteConfig: ViteUserConfig = {}, vitestOptions: VitestOptions = {})
| 10 | import { createVitest } from 'vitest/node' |
| 11 | |
| 12 | async function vitest(cliOptions: TestUserConfig, configValue: TestUserConfig = {}, viteConfig: ViteUserConfig = {}, vitestOptions: VitestOptions = {}) { |
| 13 | const vitest = await createVitest('test', { ...cliOptions, watch: false, config: false }, { ...viteConfig, test: configValue as any }, vitestOptions) |
| 14 | onTestFinished(() => vitest.close()) |
| 15 | return vitest |
| 16 | } |
| 17 | |
| 18 | test('assigns names as browsers', async () => { |
| 19 | const { projects } = await vitest({}, { |
no test coverage detected