import { fileURLToPath } from 'node:url' import { defineConfig } from 'vitest/config' import { coverageThresholdScopes } from './scripts/coverage-thresholds.js' export default defineConfig({ resolve: { alias: { '@eve-space/platform-module-server': fileURLToPath( new URL('./packages/platform-module-server/src/index.ts', import.meta.url), ), zod: fileURLToPath(new URL('./api/node_modules/zod/index.js', import.meta.url)), }, }, test: { coverage: { provider: 'v8', reporter: ['text', 'json-summary', 'lcov'], reportsDirectory: 'coverage-registry', thresholds: coverageThresholdScopes.registry.thresholds, }, env: { DATABASE_URL: 'postgres://localhost:5432/eve_space' }, environment: 'node', include: [ 'tests/platform/auth-boundaries.test.ts', 'tests/platform/graphql-boundaries.test.ts', 'tests/platform/graphql-contributions.test.ts', 'tests/platform/character-boundaries.test.ts', 'tests/platform/core-data-boundaries.test.ts', 'tests/platform/esi-gateway-boundaries.test.ts', 'tests/platform/organization-boundaries.test.ts', 'tests/platform/mail-composition-boundaries.test.ts', 'tests/platform/member-audit-adoption.test.ts', 'tests/platform/platform-boundaries.test.ts', 'tests/platform/queue-boundaries.test.ts', 'tests/platform/module-composition-side-effects.test.ts', 'tests/platform/module-package-boundaries.test.ts', 'tests/platform/platform-module-conformance.test.ts', 'tests/platform/external-module-archives.test.ts', 'tests/platform/platform-module-registry.test.ts', ], }, })