vitest.config.mts 286 B

1234567891011121314
  1. import { defineConfig } from 'vitest/config'
  2. import preact from '@preact/preset-vite'
  3. export default defineConfig({
  4. plugins: [preact()],
  5. test: {
  6. globals: true,
  7. environment: 'jsdom',
  8. setupFiles: './setupVitest.js',
  9. },
  10. resolve: {
  11. mainFields: ['module'],
  12. },
  13. });