Back to mocha!
sorry i ever left you dear mocha node:test has two major issues: * --bail does not work and requires strange modules and incantations. I was able to work around this with a custom module. * the test reporter reports _after_ the suite is run. this makes debugging really hard. the debugs that we print all happen before the test suite summary. poor design overall.
This commit is contained in:
@@ -1,12 +1,11 @@
|
||||
import { describe, it, before, after } from 'node:test';
|
||||
|
||||
import { describe, it, before, after } from 'mocha';
|
||||
import BoxError from '../boxerror.js';
|
||||
import common from './common.js';
|
||||
import assert from 'node:assert/strict';
|
||||
import safe from 'safetydance';
|
||||
import locks from '../locks.js';
|
||||
|
||||
describe('Locks', { timeout: 20000 }, function () {
|
||||
describe('Locks', function () {
|
||||
|
||||
const { setup, cleanup } = common;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user