-
Notifications
You must be signed in to change notification settings - Fork 1
/
vitest.config.ts
34 lines (31 loc) · 953 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
import { dirname, resolve } from 'path';
import { fileURLToPath } from 'url';
/* eslint-disable import/no-extraneous-dependencies */
import Vue from '@vitejs/plugin-vue';
import { defineConfig } from 'vitest/config';
/* eslint-enable import/no-extraneous-dependencies */
const DIR_NAME = dirname(fileURLToPath(import.meta.url));
const timeout = process.env.CI ? 50000 : 30000;
export default defineConfig({
plugins: [
Vue(),
],
resolve: {
alias: {
'@': resolve(DIR_NAME, './playground/app-vue3-intro/src'),
},
},
test: {
include: ['./packages/**/*.spec.[tj]s', './playground/**/*.spec.[tj]s'],
exclude: ['./packages/vue3/template', './packages/react/template', './packages/**/node_modules', './playground/**/node_modules'],
setupFiles: [],
globalSetup: [],
testTimeout: timeout,
hookTimeout: timeout,
reporters: 'dot',
environment: 'jsdom',
},
esbuild: {
target: 'node18',
},
});