forked from oku-ui/primitives
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vitest.config.ts
35 lines (33 loc) · 860 Bytes
/
vitest.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import { defineConfig } from 'vitest/config'
import Vue from '@vitejs/plugin-vue'
import { primitivesPackagesAlias } from './scripts/output'
const resolve = (val: string) => new URL(val, import.meta.url).pathname
export default defineConfig({
plugins: [Vue()],
test: {
environment: 'happy-dom',
coverage: {
provider: 'v8',
reporter: ['text', 'json-summary', 'json', 'html'],
},
exclude: [
'**/node_modules/**',
'**/dist/**',
'packages/nuxt-module/**',
'packages/example-package/**',
'packages/primitives/**',
'packages/tsconfig/**',
],
include: ['./**/*.test.ts'],
setupFiles: ['./vitest-setup.ts'],
globals: true,
cache: {
dir: '.vitest-cache',
},
},
resolve: {
alias: [
...primitivesPackagesAlias('./packages/vue/src', resolve),
],
},
})