jest/debug

Debug Tests

Debug failing tests

jest
debug
troubleshoot

Command

npm test -- --verbose

Explanation

Debug options help identify issues with failing tests and performance problems.

Examples

Verbose output

npm test -- --verbose

Detect open handles

npm test -- --detectOpenHandles

Run tests serially

npm test -- --runInBand