jest-testing
Installation
SKILL.md
JavaScript Testing Standards
Unit testing standards for JavaScript projects using Jest, covering test structure, DOM interaction, web component testing, mocking, async patterns, and coverage.
Enforcement
- Prohibited actions: Do not generate tests that depend on implementation internals; do not use arbitrary
setTimeoutwaits in tests - Constraints: Tests must follow AAA (Arrange-Act-Assert) pattern; each test verifies one behavior
Prerequisites
- Jest 29+
- jsdom test environment (for DOM/component testing)
- @testing-library/jest-dom (recommended for DOM assertions)