Skip to main content

run-tests

Run Jest tests for EduHub. Use when the user asks to run tests, execute test suite, check test coverage, or verify code changes.

Source facts

Repository
eduhub-org/eduhub
Last source activity
March 9, 2026 at 08:10
Detected SKILL.md language
English
Stars
14
Forks
9

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.

Showing SKILL.md

SKILL.md
Source instructions · Read-only preview
name
run-tests
description
Run Jest tests for EduHub. Use when the user asks to run tests, execute test suite, check test coverage, or verify code changes.
# Run Tests ## Quick Commands ```bash # From frontend-nx directory cd frontend-nx # Run all tests for edu-hub yarn test # Run tests in watch mode yarn test --watch # Run specific test file yarn test --testPathPattern="MyComponent.test" # Run with coverage yarn test --coverage ``` ## Test File Conventions - Test files: `*.test.ts` or `*.test.tsx` - Located next to the source file or in `__tests__/` folder - Use Jest + React Testing Library ## Common Patterns ### Running subset of tests ```bash # Tests matching a pattern yarn test --testPathPattern="TableGrid" # Single test file yarn test --testPathPattern="components/common/TableGrid/TableGrid.test.tsx" ``` ### Debug failing tests ```bash # Verbose output yarn test --verbose # Run only failed tests yarn test --onlyFailures ```
View on GitHub