-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvite.config.ts
More file actions
38 lines (36 loc) · 1.02 KB
/
vite.config.ts
File metadata and controls
38 lines (36 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
32
33
34
35
36
37
38
import { fileURLToPath, URL } from 'node:url';
import { sveltekit } from '@sveltejs/kit/vite';
import { svelteTesting } from '@testing-library/svelte/vite';
import { NodePackageImporter } from 'sass-embedded';
import { defineConfig } from 'vitest/config';
export default defineConfig({
plugins: [sveltekit(), svelteTesting()],
css: {
preprocessorOptions: {
scss: {
loadPaths: [fileURLToPath(new URL('./src/sass/', import.meta.url))],
importers: [new NodePackageImporter()],
},
},
},
test: {
include: ['./test/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
environment: 'jsdom',
watch: false,
setupFiles: './test/setup.ts',
clearMocks: true,
reporters: 'dot',
coverage: {
enabled: true,
reporter: ['text-summary', 'html'],
include: ['src/**/*.{js,ts,svelte}'],
exclude: [
'src/**/*.d.ts',
'src/routes/styleguide/**/*',
'src/routes/+layout.*',
],
skipFull: true,
reportOnFailure: true,
},
},
});