mirror of
https://github.com/iconify/iconify.git
synced 2024-12-23 10:18:56 +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'] : [],
|
|
},
|
|
}));
|