-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvitest.config.ts
35 lines (31 loc) · 945 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
/// <reference types="vitest" />
import * as path from "path";
import {defineConfig} from 'vitest/config';
import Vue from '@vitejs/plugin-vue';
// import Inspect from 'vite-plugin-inspect';
import {ClassStoresPlugin} from "./src/VitePlugin";
import {UserConfigExport} from "vitest/dist/config";
export default defineConfig({
plugins : [
// Inspect({
// dev : true,
// outputDir : '.vite-inspect',
// }),
ClassStoresPlugin({
storesPath : 'src/Test/Stores',
storesFileName : 'stores.d.ts',
}),
Vue(),
],
resolve : {
alias : {
'@idevelopthings/vue-class-stores/vue' : path.resolve(__dirname, './src/Lib/index.ts'),
'@idevelopthings/vue-class-stores/dev-tools' : path.resolve(__dirname, './src/DevTools/index.ts'),
'@idevelopthings/vue-class-stores/vite' : path.resolve(__dirname, './src/VitePlugin/index.ts'),
},
},
test : {
globals : true,
environment : 'jsdom',
}
});