mirror of
https://github.com/hanzoai/vitest.git
synced 2026-09-24 17:04:25 +00:00
22 lines
620 B
TypeScript
22 lines
620 B
TypeScript
import { fileURLToPath } from 'node:url'
|
|
import { defineConfig } from 'vitest/config'
|
|
import { instances, provider } from '../../settings'
|
|
|
|
// pnpm -C test/browser test-fixtures --root fixtures/viewport --browser.ui=false
|
|
// pnpm -C test/browser test-fixtures --root fixtures/viewport --browser.headless=true
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
browser: {
|
|
enabled: true,
|
|
provider,
|
|
instances: instances.map(instance => ({
|
|
...instance,
|
|
viewport: { width: 3000, height: 400 }
|
|
})),
|
|
|
|
},
|
|
},
|
|
cacheDir: fileURLToPath(new URL("./node_modules/.vite", import.meta.url)),
|
|
})
|