18 lines
613 B
TypeScript
18 lines
613 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,
|
|
// OpenCV's CJS export is a thenable; copying it onto the namespace makes `import()` never settle.
|
|
deps: { interopDefault: false },
|
|
},
|
|
});
|