import { defineConfig } from 'vitest/config'

export default defineConfig({
  test: {
    include: ['test/**/*.test.ts'],
    environment: 'jsdom',
    coverage: {
      provider: 'v8',
      include: ['src/**/*.ts'],
      // Exclude the public barrel and the thin DOM-bootstrap entry pages (integration glue with no
      // branching logic; exercised by the esbuild build + manual/E2E gates, not unit tests).
      exclude: ['src/index.ts', 'src/entry/**', 'src/**/*.d.ts'],
    },
  },
})
