blob: 9b97a5d516945d889070b43093b8b321f7766d5c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
import { sveltekit } from '@sveltejs/kit/vite'
import { defineConfig } from 'vitest/config'
import pkg from './package.json' with { type: 'json' }
export default defineConfig({
plugins: [sveltekit()],
define: {
__APP_VERSION__: JSON.stringify(pkg.version)
},
test: {
include: ['tests/**/*.{test,spec}.ts', '**/*.{test,spec}.ts'],
exclude: ['node_modules', '.svelte-kit', 'dist', 'build'],
environment: 'node'
},
server: {
port: 5173,
strictPort: false
},
preview: {
port: 4173
}
})
|