javascript-jest

Installation
SKILL.md

Test Structure

  • Name test files with .test.ts or .test.js suffix in the same folder as the file being tested
  • If any fixture or related support files are required, the should be placed in a dedicated __tests__ directory
  • Use descriptive test names that explain the expected behavior
  • Use nested describe blocks to organize related tests
  • Follow the Arrange-Act-Assert (AAA) pattern in each test

Test Structure

  • Use descriptive test names that clearly explain expected behavior
  • Organize tests using describe blocks for logical grouping
  • Keep tests focused on a single behavior or outcome
  • Use toMatchSnapshot sparingly and with meaningful names
  • Include negative test cases (what should NOT happen)

Setup and Teardown

Installs
1
GitHub Stars
1
First Seen
Mar 23, 2026
javascript-jest — russbrown00/agent-skills