jest
Verified for current stable LTS
Jest Commands
Jest command syntax with verified terminal examples.
Commands
8 commands for Jest
jest Operations
Jest Command: Display Help
jest --help jest Operations
Jest Command: Run All Tests
jest jest Operations
Jest Command: Run Related Tests For Source File
jest --findRelatedTests <path/to/source_file.js> jest Search
Jest Command: Run Tests By Name Pattern
jest --testNamePattern <regex> jest Operations
Jest Command: Run Tests For Uncommitted Files
jest --onlyChanged jest Operations
Jest Command: Run Tests From Files
jest <path/to/file1 path/to/file2 ...> jest Search
Jest Command: Run Tests From Matching Regex
jest <regex1 regex2 ...> jest Operations
Jest Command: Watch Files For Changes
jest --watch Suggest a Jest Command
Submit missing workflows, corrections, or verified alternatives for this tool.
FAQ
Coverage: Focused examples for common Jest workflows.
Verified version: current stable LTS.
Verification: Test commands in a disposable workspace and submit notes for edge cases.