☕️ Classic, reliable, trusted test framework for Node.js and the browser
Fix to TAP output when grep is used to filter out tests: these tests should not contribute to the overall total in the TAP plan.
airportyhd4490b3e14ce
diff --git a/lib/reporters/tap.js b/lib/reporters/tap.jsindex e601dc90..8f8fc5f8 100644--- a/lib/reporters/tap.js+++ b/lib/reporters/tap.js@@ -25,10 +25,10 @@ function TAP(runner) {var self = this, stats = this.stats- , total = runner.total, n = 1;runner.on('start', function(){+ var total = runner.grepTotal(runner.suite);console.log('%d..%d', 1, total);});