forked from Skatteetaten/tdg-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.ts
More file actions
35 lines (34 loc) · 836 Bytes
/
vite.config.ts
File metadata and controls
35 lines (34 loc) · 836 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
31
32
33
34
35
/// <reference types="vitest" />
import react from '@vitejs/plugin-react';
import { defineConfig } from 'vite';
import svgrPlugin from 'vite-plugin-svgr';
import viteTsconfigPaths from 'vite-tsconfig-paths';
export default defineConfig({
plugins: [react(), viteTsconfigPaths(), svgrPlugin()],
server: {
proxy: {
'/api': 'http://localhost:9090',
},
port: 3000,
open: true,
},
test: {
globals: true,
testTimeout: 60000,
environment: 'jsdom',
setupFiles: 'src/setupTests.ts',
server: {
deps: { inline: ['@skatteetaten'] },
},
include: ['src/**/*.{test,spec}.?(c|m)[jt]s?(x)'],
exclude: ['src/e2e/**'],
coverage: {
reporter: ['text', 'json', 'html', 'lcov'],
include: ['src/**'],
},
},
build: {
outDir: 'build',
sourcemap: false,
},
});