mirror of
https://github.com/hanzoai/vitest.git
synced 2026-09-24 17:04:25 +00:00
24 lines
498 B
TypeScript
24 lines
498 B
TypeScript
import path from 'node:path'
|
|
import { fileURLToPath } from 'node:url'
|
|
import { defineConfig } from 'vitest/config'
|
|
import { instances, provider } from '../../settings'
|
|
|
|
/*
|
|
manually test snapshot by
|
|
pnpm -C test/browser test-fixtures --root fixtures/update-snapshot
|
|
*/
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
browser: {
|
|
enabled: true,
|
|
provider,
|
|
instances,
|
|
},
|
|
},
|
|
cacheDir: path.join(
|
|
path.dirname(fileURLToPath(import.meta.url)),
|
|
'node_modules/.vite'
|
|
),
|
|
})
|