1
0
mirror of synced 2026-10-07 23:31:24 +08:00
Files
cook/vitest.config.ts
2026-08-12 23:18:46 +08:00

34 lines
732 B
TypeScript

import { fileURLToPath } from 'node:url'
import { defineConfig } from 'vitest/config'
export default defineConfig({
test: {
include: ['test/**/*.test.ts', 'packages/**/src/**/*.test.ts'],
environment: 'jsdom',
server: {
deps: {
inline: ['@vue', '@vueuse', 'vue-demi'],
},
},
setupFiles: ['test/setup.ts'],
alias: {
'~': fileURLToPath(new URL('./app', import.meta.url)),
},
coverage: {
provider: 'v8',
reporter: ['text', 'json', 'html'],
include: ['app/**/*.{ts,vue}', 'packages/**/src/**/*.ts'],
exclude: [
'test/**',
'**/*.test.ts',
'**/*.d.ts',
'**/types.ts',
'**/*.config.ts',
],
},
},
})