feat: add comprehensive test suite for documentation quality#446
Draft
cursor[bot] wants to merge 3 commits intomasterfrom
Draft
feat: add comprehensive test suite for documentation quality#446cursor[bot] wants to merge 3 commits intomasterfrom
cursor[bot] wants to merge 3 commits intomasterfrom
Conversation
- Add Vitest testing framework with 230+ tests - Implement link validation tests to verify internal links - Add front matter validation for metadata consistency - Create content quality tests for heading hierarchy, images, and structure - Add VitePress configuration validation - Update CI workflow to run tests on PRs - Add test documentation to README and AGENTS.md Test coverage includes: - Internal link resolution and validation - Front matter presence and format - Content structure and quality - Image CDN usage and alt text - VitePress config validation - Heading hierarchy checks
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR introduces a comprehensive automated test suite for the Plane documentation site to ensure content quality, consistency, and correctness.
Changes
Testing Infrastructure
TESTING.md)Test Suites
1. Link Validation (
tests/links.test.ts).mdextensions (VitePress convention)2. Front Matter Validation (
tests/frontmatter.test.ts)titlefield3. Content Validation (
tests/content.test.ts)https://media.docs.plane.so/)4. Configuration Validation (
tests/config.test.ts)Usage
CI Integration
Tests now run automatically on all pull requests alongside:
pnpm check:format)pnpm build)Documentation
TESTING.md: Comprehensive testing guide with examples and troubleshootingREADME.md: Updated with testing commands and suite overviewAGENTS.md: Updated with testing commands for AI agentsTest Results
All 230 tests passing ✅
The test suite provides helpful warnings for:
These warnings help maintain documentation quality without blocking merges for existing content.
Benefits
Testing Philosophy