home/writing/jest-prompts

Jest Prompts

GPTClaudeGemini··322 copies·updated 2026-07-14
jest-prompts.prompt
# Jest Prompts

## Build
Use the Jest skill. Inspect existing project conventions, implement the requested change using idiomatic Jest patterns, verify with jest targeted runs, fake timer checks, snapshot review, coverage checks, and mock cleanup, and summarize changed files and risks.

## Review
Use the Jest skill. Review the change for correctness, maintainability, security, performance, and Jest-specific pitfalls such as brittle snapshots, leaky mocks, testing implementation details, unawaited promises, and timer misuse. Provide findings by severity.

## Debug
Use the Jest skill. Reproduce or reason through the issue, inspect relevant files and runtime signals, identify the likely cause, apply a focused fix if requested, and verify with jest targeted runs, fake timer checks, snapshot review, coverage checks, and mock cleanup.

## Document
Use the Jest skill. Create documentation that explains setup, usage, configuration, limitations, and troubleshooting for this repository's Jest implementation.

when to use it

Community prompt sourced from the open-source GitHub repo HasainalFaruk/AI-Engineer-Pack (no explicit license). A "Jest Prompts" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.

tags

writingcommunitygeneral

source

HasainalFaruk/AI-Engineer-Pack · no explicit license