-
-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathvitest.config.ts
More file actions
24 lines (23 loc) · 636 Bytes
/
vitest.config.ts
File metadata and controls
24 lines (23 loc) · 636 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
import { defineConfig } from 'vitest/config';
import { sveltekit } from '@sveltejs/kit/vite';
import { svelteTesting } from '@testing-library/svelte/vite';
import path from 'path';
export default defineConfig({
plugins: [sveltekit(), svelteTesting()],
resolve: {
alias: {
$lib: path.resolve('./src/lib'),
},
},
test: {
include: ['src/**/*.{test,spec}.{js,ts}'],
environment: 'happy-dom',
globals: true,
coverage: {
provider: 'v8',
reporter: ['text', 'html'],
include: ['src/**/*.{js,ts,svelte}'],
exclude: ['src/**/*.{test,spec}.{js,ts}', 'src/test/**/*'],
},
},
});