Launched this week
eslint-plugin-hollow-tests

eslint-plugin-hollow-tests

An ESLint plugin that catches tests that check nothing

1 follower

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.

eslint-plugin-hollow-tests makers

Here are the founders, developers, designers and product people who worked on eslint-plugin-hollow-tests