forked from archesproject/arches
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvitest.config.mts
37 lines (34 loc) · 1.1 KB
/
vitest.config.mts
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
36
37
import path from 'path';
import vue from "@vitejs/plugin-vue";
import { defineConfig } from "vitest/config";
const exclude = [
'**/node_modules/**',
'**/dist/**',
'**/cypress/**',
'**/.{idea,git,cache,output,temp}/**',
'**/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build}.config.*',
'**/src/declarations.d.ts',
path.join(path.basename(__dirname), 'install', '**')
];
export default defineConfig({
plugins: [vue()],
test: {
alias: {
'@/': new URL(path.join(path.basename(__dirname), 'app', 'src', '/'), import.meta.url).pathname,
},
coverage: {
include: [path.join(path.basename(__dirname), 'app', 'src', '/')],
exclude: exclude,
reporter: [
['clover', { 'file': 'coverage.xml' }],
'text',
],
reportsDirectory: path.join(__dirname, 'coverage', 'frontend'),
},
environment: "jsdom",
globals: true,
exclude: exclude,
passWithNoTests: true,
setupFiles: ['vitest.setup.mts'],
},
});