-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvitest.config.js
39 lines (35 loc) · 1.04 KB
/
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
31
32
33
34
35
36
37
38
39
import { defineConfig, configDefaults } from "vitest/config";
import Vue from "@vitejs/plugin-vue";
import { ViteAliases } from 'vite-aliases';
export default defineConfig({
plugins: [
Vue({
template: {
compilerOptions: {
isCustomElement: (tag) => ['q-btn', 'q-input'].includes(tag),
}
}
}),
ViteAliases({
dir: 'src',
prefix: '@',
}),
],
test: {
globals: true,
environment: "happy-dom",
////include: ['./test/**/*.spec.ts'],
exclude:[
...configDefaults.exclude,
'dist2',
'tests/unit/stores/ui.spec.js',
'tests/unit/stores/languageData.spec.js',
'tests/unit/stores/user.spec.js',
//'tests/unit/stores/categoriesData.spec.js',
//'tests/unit/stores/expensesData.spec.js',
'tests/unit/stores/utilities.spec.js',
'tests/unit/utilities/ajaxWeb.spec.js'
]
},
root: ".",
});