-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.mts
37 lines (35 loc) · 899 Bytes
/
vite.config.mts
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
/// <reference types="vitest" />
import path from 'path';
import tsconfigPaths from 'vite-tsconfig-paths';
import { coverageConfigDefaults, defineConfig } from 'vitest/config';
export default defineConfig({
plugins: [tsconfigPaths()],
server: {
watch: {
usePolling: true,
},
host: true, // needed for the Docker Container port mapping to work
strictPort: true,
port: 5173, // you can replace this port with any port
},
test: {
globals: true,
environment: 'node',
include: ['./src/**/*.{spec,test}.{ts,tsx}'],
coverage: {
enabled: true,
provider: 'v8',
reporter: ['text', 'html'],
exclude: [
'**/node_modules/**',
'**/*.{config}.{js,ts,mjs,mts,tsx}',
...coverageConfigDefaults.exclude,
],
},
},
resolve: {
alias: {
'@/src/*': path.resolve(__dirname, './src'),
},
},
});