Preventing Hidden Failures in Mocha Tests with --forbid-only and --forbid-pending
Accidental `it.only` and silent pending specs can make a test run look green while hiding real bugs. Mocha’s `--forbid-only` and `--forbid-pending` flags turn these slips into CI failures, keeping your test suite honest. Learn how to adopt them safely.