2
0
mirror of https://github.com/iconify/iconify.git synced 2024-12-23 10:18:56 +00:00
iconify/components/svelte/vitest.config.js
2024-07-25 23:04:08 +03:00

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'] : [],
},
}));