mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-22 03:57:47 -04:00
38 lines
1.2 KiB
TypeScript
38 lines
1.2 KiB
TypeScript
import { defineVitestProject } from '@nuxt/test-utils/config';
|
|
import { defineConfig } from 'vitest/config';
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
projects: [
|
|
{
|
|
test: {
|
|
name: 'unit',
|
|
include: ['test/**/*.test.ts'],
|
|
exclude: ['test/**/*.nuxt.test.ts'],
|
|
environment: 'node',
|
|
alias: {
|
|
'~~': new URL('.', import.meta.url).pathname,
|
|
'~': new URL('./app', import.meta.url).pathname,
|
|
},
|
|
},
|
|
},
|
|
await defineVitestProject({
|
|
test: {
|
|
name: 'nuxt',
|
|
include: ['test/**/*.nuxt.test.ts'],
|
|
environment: 'nuxt',
|
|
environmentOptions: {
|
|
nuxt: {
|
|
domEnvironment: 'jsdom',
|
|
},
|
|
},
|
|
},
|
|
}),
|
|
],
|
|
coverage: {
|
|
include: ['app/**', 'server/**', 'shared/**'],
|
|
reporter: ['text', 'cobertura'],
|
|
},
|
|
},
|
|
});
|