mirror of
https://github.com/hanzoai/vitest.git
synced 2026-09-24 17:04:25 +00:00
17 lines
448 B
TypeScript
17 lines
448 B
TypeScript
import { playwright } from '@vitest/browser-playwright'
|
|
import { fileURLToPath } from 'node:url'
|
|
import { defineConfig } from 'vitest/config'
|
|
|
|
export default defineConfig({
|
|
cacheDir: fileURLToPath(new URL("./node_modules/.vite", import.meta.url)),
|
|
test: {
|
|
include: ['basic.test.ts', 'math.test.ts'],
|
|
api: 7523,
|
|
browser: {
|
|
instances: [{ browser: 'chromium' }],
|
|
provider: playwright(),
|
|
headless: true,
|
|
}
|
|
},
|
|
})
|