16 lines
473 B
TypeScript
16 lines
473 B
TypeScript
import { defineConfig } from 'vitest/config';
|
|
import { svelte } from '@sveltejs/vite-plugin-svelte';
|
|
|
|
export default defineConfig({
|
|
plugins: [svelte()],
|
|
// Rune modules must compile for the browser runtime under Vitest too.
|
|
resolve: process.env.VITEST ? { conditions: ['browser'] } : undefined,
|
|
build: { chunkSizeWarningLimit: 12000 },
|
|
test: {
|
|
environment: 'node',
|
|
include: ['tests/**/*.test.ts'],
|
|
testTimeout: 30000,
|
|
hookTimeout: 60000,
|
|
},
|
|
});
|