-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathvite.config.ts
More file actions
47 lines (46 loc) · 1.08 KB
/
vite.config.ts
File metadata and controls
47 lines (46 loc) · 1.08 KB
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
38
39
40
41
42
43
44
45
46
47
import tailwindcss from '@tailwindcss/vite'
import react from '@vitejs/plugin-react-swc'
import { defineConfig } from 'vitest/config'
export default defineConfig({
plugins: [react(), tailwindcss()],
server: {
host: '0.0.0.0',
port: 8080,
},
test: {
watch: false,
css: false,
coverage: {
reporter: 'lcov',
exclude: [
'src/api',
'src/entities',
'src/constants',
'src/utils/canViewPage.ts',
'**/__tests__',
],
},
projects: [
{
test: {
name: 'unit',
globals: true,
environment: 'jsdom',
setupFiles: './setup-tests.ts',
include: ['src/**/__tests__/**/*.test.{ts,tsx}'],
exclude: ['src/utils/__tests__/convertDateToUTC.test.ts'],
},
},
{
test: {
name: 'tz',
globals: true,
environment: 'jsdom',
setupFiles: './setup-tests.ts',
include: ['src/utils/__tests__/convertDateToUTC.test.ts'],
env: { TZ: 'America/Los_Angeles' },
},
},
],
},
})