1.0.7 • Published 3 years ago
fast-fail v1.0.7
fast-fail
Install with:
npm i fast-fail
A wrapper around the native Node.js test module that fails entirely after the first failure.
import test from 'fast-fail';
test('evil test >:)', () => {
throw new Error('I will make this test fail >:)');
}); // This (obviously) fails.
test('the victim', () => {
console.log('Oh nooo :(');
}); // This fails as well.
Caveats:
- Requires an ESM module and Node.js v18 or newer.
- Does not provide additional options as arguments.