Files
spartan-ng__spartan/libs/registry/vite.config.mts
Ashley Hunter 16ecd13eab test: surface vitest test counts in CI logs for the node projects
Add reporters: ['default'] to the mcp, cli, tools, registry and cli-smoke vite
configs (brain and helm already had it). Without a default reporter the @nx/vitest
NxReporter is the only one attached, so these projects printed no summary in CI -
which is how mcp's silently-undiscovered specs stayed invisible. The counts are
now shown so test execution is verifiable at a glance.
2026-06-13 17:35:00 +01:00

21 lines
589 B
TypeScript

/// <reference types="vitest" />
import { nxViteTsPaths } from '@nx/vite/plugins/nx-tsconfig-paths.plugin';
import { defineConfig } from 'vite';
// https://vitejs.dev/config/
export default defineConfig({
root: __dirname,
plugins: [nxViteTsPaths()],
test: {
passWithNoTests: true,
globals: true,
// Emit the default summary so CI logs show the test counts; a terse reporter previously let
// a project's specs go silently undiscovered.
reporters: ['default'],
environment: 'node',
include: ['src/**/*.spec.ts'],
},
cacheDir: '../../node_modules/.vitest/registry',
});