mirror of
https://github.com/iconify/iconify.git
synced 2024-12-12 13:47:49 +00:00
16 lines
348 B
JavaScript
16 lines
348 B
JavaScript
import { defineConfig } from 'vitest/config';
|
|
import { svelte } from '@sveltejs/vite-plugin-svelte';
|
|
|
|
export default defineConfig(({ mode }) => ({
|
|
plugins: [svelte()],
|
|
test: {
|
|
globals: true,
|
|
watch: false,
|
|
environment: 'jsdom',
|
|
include: ['**/tests/**/*.test.ts'],
|
|
},
|
|
resolve: {
|
|
conditions: mode === 'test' ? ['browser'] : [],
|
|
},
|
|
}));
|