Files
docs/vitest.config.ts
zooqueen 744d91b1bf ported project docs are a snapshot, not build output
content/docs/projects/ was gitignored and held thousands of tracked
files at the same time, and every build re-mirrored it from hundreds of
upstream checkouts. Only the shipping image opted out, so the image
compiled the committed snapshot while a person's build compiled a fresh
mirror — one local build deleted 521 committed files and modified 444
more. One mirrored upstream imports a partial mid-page, which no alias
resolves, and the build failed with 54 unresolved specifiers after
silently skipping 119 further pages. The site had not built in a while.

The snapshot is the source: the ignore line is gone, the mirror leaves
the build and becomes a refresh run on purpose and read as a diff, and
the env knobs that let one command mean two different sites are
deleted. The section is named in the export gate, so losing it fails
rather than shipping a hole.

The generator's YAML escape emitted a backslash before a colon, which is
not an escape — the parser rejected the whole frontmatter block and
those pages shipped with no title, icon or description.
2026-08-20 15:20:07 -07:00

27 lines
959 B
TypeScript

import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
projects: [
'packages/*',
// `apps/docs` and not `apps/*`: apps/platform/e2e holds Playwright specs,
// which are not vitest's to run.
//
// Spelled as a config rather than a path because of the exclude: the docs
// app carries content/docs/projects, a MIRROR of other repos' docs, and
// some of those repos ship their tutorial code — tests included, which
// expect that repo's fixtures and working directory. Running them here
// reported a red suite for two eslint tutorials that were never ours and
// that nothing in this repo can fix. We publish those pages; we do not own
// their test runs.
{
test: {
name: 'docs',
root: './apps/docs',
exclude: ['**/node_modules/**', '**/dist/**', 'content/docs/projects/**'],
},
},
],
},
});