mirror of
https://github.com/hanzoai/vitest.git
synced 2026-10-30 14:46:34 +00:00
20 lines
540 B
TypeScript
20 lines
540 B
TypeScript
import { defineConfig } from 'vitest/config';
|
|
import { fileURLToPath } from 'node:url'
|
|
import { instances, provider } from '../../../settings'
|
|
|
|
// BROWSER=chromium pnpm -C test/browser test-fixtures --root fixtures/mocking-out-of-root/project1
|
|
|
|
export default defineConfig({
|
|
cacheDir: fileURLToPath(new URL("./node_modules/.vite", import.meta.url)),
|
|
root: import.meta.dirname,
|
|
test: {
|
|
browser: {
|
|
enabled: true,
|
|
provider: provider,
|
|
screenshotFailures: false,
|
|
headless: true,
|
|
instances,
|
|
},
|
|
},
|
|
})
|