mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 04:04:32 +01:00
19 lines
525 B
TypeScript
19 lines
525 B
TypeScript
import { fileURLToPath } from 'node:url'
|
|
import { defineVitestConfig } from '@nuxt/test-utils/config'
|
|
|
|
export default defineVitestConfig({
|
|
test: {
|
|
testTimeout: 1000,
|
|
globals: true,
|
|
silent: true,
|
|
include: ['./test/components/**.spec.ts', './test/composables/**.spec.ts'],
|
|
environment: 'nuxt',
|
|
environmentOptions: {
|
|
nuxt: {
|
|
rootDir: fileURLToPath(new URL('test/nuxt/', import.meta.url))
|
|
}
|
|
},
|
|
setupFiles: fileURLToPath(new URL('test/nuxt/setup.ts', import.meta.url))
|
|
}
|
|
})
|