2023-12-11 18:20:11 +00:00
|
|
|
import { defineVitestConfig } from '@nuxt/test-utils/config'
|
2023-07-02 08:59:16 +00:00
|
|
|
|
|
|
|
export default defineVitestConfig({
|
|
|
|
test: {
|
|
|
|
dir: './test/nuxt',
|
2023-12-21 11:09:15 +00:00
|
|
|
coverage: {
|
2024-04-05 18:08:32 +00:00
|
|
|
include: ['packages/nuxt/src/app'],
|
2023-12-21 11:09:15 +00:00
|
|
|
},
|
2023-10-07 06:30:10 +00:00
|
|
|
environment: 'nuxt',
|
2024-03-16 18:53:01 +00:00
|
|
|
setupFiles: [
|
2024-04-05 18:08:32 +00:00
|
|
|
'./test/setup-runtime.ts',
|
2024-03-16 18:53:01 +00:00
|
|
|
],
|
2023-10-07 06:30:10 +00:00
|
|
|
environmentOptions: {
|
|
|
|
nuxt: {
|
|
|
|
overrides: {
|
2024-05-20 06:02:54 +00:00
|
|
|
runtimeConfig: {
|
|
|
|
app: {
|
|
|
|
buildId: 'override',
|
|
|
|
},
|
|
|
|
},
|
2024-03-16 18:06:29 +00:00
|
|
|
experimental: {
|
2024-04-05 18:08:32 +00:00
|
|
|
appManifest: process.env.TEST_MANIFEST !== 'manifest-off',
|
2024-03-16 18:06:29 +00:00
|
|
|
},
|
2024-04-05 18:08:32 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2023-07-02 08:59:16 +00:00
|
|
|
})
|