-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.ts
More file actions
31 lines (30 loc) · 1.02 KB
/
vitest.config.ts
File metadata and controls
31 lines (30 loc) · 1.02 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
import { defineConfig } from 'vitest/config';
import { sveltekit } from '@sveltejs/kit/vite';
export default defineConfig({
plugins: [sveltekit()],
test: {
include: ['src/**/*.{test,spec}.{js,ts}'],
exclude: [
'src/routes/api/health/**/*.test.ts',
'src/lib/server/auth.test.ts',
'src/lib/server/db/configs.test.ts',
'src/routes/api/configs/server.test.ts',
'src/routes/api/configs/[slug]/server.test.ts',
'src/routes/api/configs/[slug]/revisions/server.test.ts',
'src/routes/api/auth/cli/poll/server.test.ts',
'src/routes/api/auth/cli/start/server.test.ts',
'src/routes/api/auth/cli/approve/server.test.ts',
'src/routes/[username]/[slug]/install/server.test.ts',
'src/routes/[username]/[slug]/config/server.test.ts',
'src/smoke-tests/**/*.test.ts',
'node_modules/**'
],
globals: true,
environment: 'happy-dom',
coverage: {
provider: 'v8',
reporter: ['text', 'json', 'html'],
exclude: ['node_modules/', 'src/lib/test/', '**/*.d.ts', '**/*.config.*', '**/mockData', 'build/']
}
}
});