vitest.config.ts 364 B

123456789101112131415161718
  1. import { defineConfig } from 'vitest/config'
  2. import { svelte } from '@sveltejs/vite-plugin-svelte'
  3. export default defineConfig({
  4. plugins: [
  5. svelte({
  6. hot: false,
  7. })
  8. ],
  9. test: {
  10. globals: true,
  11. environment: 'jsdom',
  12. setupFiles: './setupVitest.ts',
  13. alias: [
  14. { find: /^svelte$/, replacement: "svelte/internal" }
  15. ]
  16. },
  17. });