24 lines
505 B
TypeScript
24 lines
505 B
TypeScript
import { defineConfig } from 'vitest/config'
|
|
import { defineVitestProject } from '@nuxt/test-utils/config'
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
projects: [
|
|
{
|
|
test: {
|
|
name: 'unit',
|
|
include: ['test/{e2e,unit}/*.{test,spec}.ts'],
|
|
environment: 'node'
|
|
}
|
|
},
|
|
await defineVitestProject({
|
|
test: {
|
|
name: 'nuxt',
|
|
include: ['test/nuxt/*.{test,spec}.ts'],
|
|
environment: 'nuxt'
|
|
}
|
|
})
|
|
]
|
|
}
|
|
})
|