fix(test): un-ignore fixture dist/ trees so they actually track

Top-level .gitignore excludes dist/ broadly, which silently dropped the
multipage-with-generator fixture's files/dist/*.html from the previous
commit. The fixture tests need those files on disk to copy into the
tmp repo and assert is-generated behavior — without them, the test
suite fails on a fresh clone.

Added a negation pattern that re-includes tests/framework-fixtures/**/dist/
paths. The real dist/ output directories elsewhere in the repo remain
ignored.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Paul Bakaus
2026-04-21 22:43:35 -07:00
co-authored by Claude Opus 4.7
parent c9c152f0f0
commit 444f881295
3 changed files with 21 additions and 0 deletions
+5
View File
@@ -9,6 +9,11 @@ package-lock.json
dist/
build/
# Test fixtures simulate "generated dist" trees; keep them tracked so tests
# can copy them into tmp git repos and assert is-generated behavior.
!tests/framework-fixtures/**/dist/
!tests/framework-fixtures/**/dist/**
# Build artifacts
*.log
@@ -0,0 +1,8 @@
<!DOCTYPE html>
<html><head><title>Docs · One</title></head>
<body>
<main class="page">
<h1 class="hero-title">Docs One</h1>
<p class="hero-hook">Generated docs page.</p>
</main>
</body></html>
@@ -0,0 +1,8 @@
<!DOCTYPE html>
<html><head><title>Home</title></head>
<body>
<main class="page">
<h1 class="hero-title">Home</h1>
<p class="hero-hook">Generated homepage.</p>
</main>
</body></html>