forked from internxt/drive-desktop
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathvitest.config.renderer.ts
More file actions
50 lines (49 loc) · 1.14 KB
/
vitest.config.renderer.ts
File metadata and controls
50 lines (49 loc) · 1.14 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
48
49
50
import { defineConfig } from 'vitest/config';
import path from 'node:path';
import react from '@vitejs/plugin-react';
import svgr from 'vite-plugin-svgr';
export default defineConfig({
plugins: [
react(),
svgr({
svgrOptions: {
exportType: 'default',
ref: true,
titleProp: true,
},
include: '**/*.svg',
}),
],
test: {
name: 'renderer',
environment: 'jsdom',
setupFiles: ['./vitest.setup.renderer.ts'],
include: ['src/apps/renderer/**/*.test.{ts,tsx}',/*'src/apps/backups/index.test.ts',*/],
watch: false,
exclude: [
'**/node_modules/**',
'**/release/**',
],
globals: true,
css: true,
coverage: {
provider: 'v8',
reporter: ['text', 'json', 'html', 'lcov'],
reportsDirectory: './coverage/renderer',
exclude: [
'**/node_modules/**',
'**/release/**',
'**/tests/**',
'**/*.test.{ts,tsx}',
'**/__mocks__/**',
],
},
},
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
// Mock CSS modules
'\\.(css|less|sass|scss)$': 'identity-obj-proxy',
},
},
});