-
-
Notifications
You must be signed in to change notification settings - Fork 347
/
vitest.config.js
30 lines (29 loc) · 765 Bytes
/
vitest.config.js
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
import { defineConfig } from 'vitest/config'
import { resolve } from 'path'
import vue from '@vitejs/plugin-vue'
import graphql from '@rollup/plugin-graphql'
export default defineConfig({
plugins: [vue(), graphql()],
test: {
include: ['tests/**/?(*.)+(spec|test).+(ts|tsx|js)'],
exclude: [
'**/node_modules/**',
'**/dist/**',
'**/.{idea,git,cache,output,temp}/**',
'**/tests/e2e/**',
],
globals: true,
environment: 'jsdom',
alias: [{ find: /^vue$/, replacement: 'vue/dist/vue.runtime.common.js' }],
coverage: {
provider: 'istanbul',
reporter: ['text', 'json', 'html'],
},
},
resolve: {
alias: {
'@': resolve(__dirname, './'),
'~': resolve(__dirname, './'),
},
},
})