Nuxt/vitest.nuxt.config.ts

30 lines
623 B
TypeScript
Raw Normal View History

import { defineVitestConfig } from '@nuxt/test-utils/config'
export default defineVitestConfig({
test: {
dir: './test/nuxt',
coverage: {
include: ['packages/nuxt/src/app'],
},
environment: 'nuxt',
setupFiles: [
'./test/setup-runtime.ts',
],
environmentOptions: {
nuxt: {
overrides: {
buildId: 'nuxt-app',
experimental: {
appManifest: process.env.TEST_MANIFEST !== 'manifest-off',
},
appConfig: {
nuxt: {
buildId: 'override',
},
},
},
},
},
},
})