vitest.config.ts 582 Bytes
import { defineConfig } from 'vitest/config';
import { fileURLToPath, URL } from 'node:url';

export default defineConfig({
  resolve: {
    alias: {
      '@': fileURLToPath(new URL('./src', import.meta.url)),
      '@hm/ui': fileURLToPath(new URL('./packages/ui/src/index.ts', import.meta.url)),
      '@hm/map-overlay': fileURLToPath(
        new URL('./packages/map-overlay/src/index.ts', import.meta.url),
      ),
    },
  },
  test: {
    environment: 'jsdom',
    globals: true,
    include: ['src/**/*.{test,spec}.{ts,tsx}', 'packages/**/*.{test,spec}.{ts,tsx}'],
  },
});