返回产品列表
e

产品详情

eslint-plugin-hollow-tests

An ESLint plugin that catches tests that check nothing

发布日期 · UTC
2026-11-12
产品域名
—
域名后缀
—
产品方向
开发者工具

关于产品

A test with no assertion passes forever, and so does one whose assertions sit inside a branch that never runs. eslint-plugin-hollow-tests reports both: tests with no assertion at all, and assertions only inside if, the conditional operator, &&, ||, ??, switch, catch or a loop that may run zero times. Loops known to run at least once count as outside, and assertions moved into a helper are followed automatically within the file. Works with your existing test framework. Free and open source.

关键词

linting静态分析unit testing