forked from posva/unplugin-vue-router
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.ts
More file actions
30 lines (28 loc) · 747 Bytes
/
Copy pathvitest.config.ts
File metadata and controls
30 lines (28 loc) · 747 Bytes
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 Vue from '@vitejs/plugin-vue'
import { fileURLToPath, URL } from 'url'
const __dirname = new URL('.', import.meta.url).pathname
export default defineConfig({
resolve: {
alias: [
{
find: 'unplugin-vue-router/runtime',
replacement: fileURLToPath(new URL('src/runtime.ts', import.meta.url)),
},
],
},
plugins: [Vue()],
test: {
setupFiles: ['./tests/router-mock.ts'],
// open: false,
typecheck: {
enabled: true,
checker: 'vue-tsc',
// only: true,
ignoreSourceErrors: true,
// by default it includes all specs too
include: ['**/*.test-d.ts'],
// tsconfig: './tsconfig.typecheck.json',
},
},
})