babel-jest-assertions

JSON →
library 0.1.0 ·javascript
verified Apr 27, 2026

A Babel plugin (v0.1.0) that automatically inserts `expect.assertions(n)` and `expect.hasAssertions()` into Jest test blocks by counting `expect` calls. It supports sync, async, arrow, named, and only tests, including `beforeEach`/`afterEach` blocks. Unlike manual insertion, it eliminates human error and verbosity. Current stable version is 0.1.0; no major releases planned. Minimal alternative to manual assertion count management.

total hits 26
actors 8 distinct systems
last hit 1d ago AhrefsBot
Amazonbot
3
ByteDance
3
MetaBot
3
GPTBot
2
Search engines
1
Humans
3

top countries 🇺🇸 United States · 🇩🇪 Germany · 🇫🇷 France · 🇸🇬 Singapore · 🇬🇧 United Kingdom