CRASM-3764: Epic - Frontend Testing Documentation Suite #1499
Draft
jsalinasnttdata wants to merge 5 commits intodevelopfrom
Draft
CRASM-3764: Epic - Frontend Testing Documentation Suite #1499jsalinasnttdata wants to merge 5 commits intodevelopfrom
jsalinasnttdata wants to merge 5 commits intodevelopfrom
Conversation
…rent patterns - Add comprehensive unit test templates for components, hooks, utilities, context, and integration tests - Update main testing README with current inconsistencies and migration guidance - Document mixed import patterns across 132+ test files and provide standardization roadmap - Enhance test-utils exports with missing mock data factories (makeDomain, makeVuln) - Add troubleshooting section for common import pattern issues - Create detailed testing audit summary with findings and recommendations - Link unit test templates from main testing README for better discoverability
…nd structure - Create docs/testing/frontend/ subdirectory for frontend-specific documentation - Move CI Coverage Guidelines to frontend/CI_COVERAGE_GUIDELINES.md - Move unit test templates to frontend/unit-templates/ subdirectory - Update main testing README to support frontend/backend organization structure - Add placeholder sections for future backend testing documentation - Fix all cross-references and navigation paths in documentation files - Update frontend testing README links to point to new frontend subdirectory - Update unit test templates README with corrected relative paths
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.
🗣 Description
This PR implements comprehensive frontend testing documentation for the XFD (CyHy Dashboard) project, providing standardized guidelines, templates, and CI integration for consistent testing practices across the team.
What's New
📚 Complete Documentation Structure
🎯 Key Features
Enhanced Main Testing Guide (
frontend/src/tests/README.md)Unit Test Template Suite (
docs/testing/frontend/unit-templates/)test-utilsCI Coverage Guidelines (
docs/testing/frontend/CI_COVERAGE_GUIDELINES.md)📖 How to Review This PR
1. Start with the Central Hub
👉 Begin here:
docs/testing/README.md2. Main Testing Documentation
👉 Core guide:
frontend/src/tests/README.md3. Template Library
👉 Ready-to-use templates:
docs/testing/frontend/unit-templates/README.mdfor navigation4. CI & Coverage
👉 Coverage guidelines:
docs/testing/frontend/CI_COVERAGE_GUIDELINES.md🚀 Quick Start for Team Members
For New Developers
import { render, screen } from 'test-utils'for all new testssrc/components/Header/→tests/components/Header/For Existing Team Members
import { render, screen } from 'test-utils'pattern📊 Coverage Status
🎯 Epic Completion
This PR completes epic CRASM-3764 with all child tickets delivered:
🔗 Quick Navigation
Ready for team review! Start with any of the quick navigation links above. The documentation is designed to be self-guided and comprehensive for both new and existing team members.
✅ Pre-approval checklist
bump_versionscript if this repository is versioned and the changes in this PR warrant a version bump.✅ Pre-merge checklist
✅ Post-merge checklist