@reporters/bail
Advanced tools
Comparing version 1.1.4 to 1.2.0
@@ -6,6 +6,8 @@ 'use strict'; | ||
if (event.type === 'test:fail') { | ||
/* c8 ignore start */ | ||
yield `\n\u001b[31m✖ Bailing on failed test: ${event.data.name}\u001b[0m\n`; | ||
throw new Error('Bail'); | ||
} | ||
/* c8 ignore stop */ | ||
} | ||
}; |
{ | ||
"name": "@reporters/bail", | ||
"version": "1.1.4", | ||
"version": "1.2.0", | ||
"description": "A Bail library for `node:test`", | ||
@@ -5,0 +5,0 @@ "type": "commonjs", |
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
1898
11
0