@@ -1,7 +1,7 @@
|
||||
import adapter from '@sveltejs/adapter-static';
|
||||
import { sveltekit } from '@sveltejs/kit/vite';
|
||||
import tailwindcss from '@tailwindcss/vite';
|
||||
import { defineConfig } from 'vite';
|
||||
import { defineConfig } from 'vitest/config';
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [
|
||||
@@ -17,5 +17,13 @@ export default defineConfig({
|
||||
// `fallback` hands every unknown path to the client-side router.
|
||||
adapter: adapter({ fallback: 'index.html' })
|
||||
})
|
||||
]
|
||||
],
|
||||
|
||||
test: {
|
||||
// The pure modules only — `$lib/statistics`, `$lib/tournaments` and the small
|
||||
// helpers beside them. Everything under `ui/` or `routes/` needs a component
|
||||
// harness, which this project deliberately does not have yet.
|
||||
include: ['src/**/*.test.ts'],
|
||||
environment: 'node'
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user