mirror of
https://github.com/iconify/iconify.git
synced 2024-11-16 17:45:09 +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'] : [],
|
|
},
|
|
}));
|