-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvitest.config.js
34 lines (32 loc) · 942 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
31
32
33
34
import {resolve} from "path"
import { defineConfig } from "vitest/config"
import Vue from "@vitejs/plugin-vue"
export default defineConfig({
plugins: [
Vue(),
],
resolve: {
alias: {
"@": resolve(__dirname, ".", "src"),
components: resolve(__dirname, "src/components/"),
constants: resolve(__dirname, "src/constants/"),
find: /^~/,
img: resolve(__dirname, "assets/img"),
mocks: resolve(__dirname, ".", "tests/__mocks__/"),
services: resolve(__dirname, "src/services/"),
src: resolve(__dirname, "src"),
store: resolve(__dirname, "src/store/"),
styles: resolve(__dirname, "src/assets/styles/"),
svgs: resolve(__dirname, "src/assets/svgs/"),
},
},
root: ".", // Define the root
test: {
globals: true,
environment: "jsdom",
// The file extension of your test files
include: [
"tests/**/*.{test,spec}.{js,jsx,ts,tsx}",
],
},
})