import { defineConfig } from 'vitest/config'

export default defineConfig({
  test: {
    include: ['test/**/*.test.ts'],
    environment: 'node',
    coverage: {
      provider: 'v8',
      include: ['src/**/*.ts'],
      // server.ts is the process entrypoint (binds a socket) — an integration seam, not a unit.
      exclude: ['**/*.d.ts', 'src/server.ts'],
    },
  },
})
