When brittle is installed globally npm i brittle -g, there seems to be the following issue with exception capturing:
❯ brittle test/*.js
TAP version 13
# test/basic.js
Brittle: Fatal Error
Error [ERR_UNCAUGHT_EXCEPTION_CAPTURE_ALREADY_SET]: `process.setupUncaughtExceptionCapture()` was called while a capture callback was already active
at new NodeError (internal/errors.js:322:7)
at process.setUncaughtExceptionCaptureCallback (internal/process/execution.js:115:11)
at Object.<anonymous> (/home/andrewosh/Development/@hypercore-skunkworks/hypercore-next/node_modules/brittle/index.js:50:9)
at Module._compile (internal/modules/cjs/loader.js:1085:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
at Module.load (internal/modules/cjs/loader.js:950:32)
at Function.Module._load (internal/modules/cjs/loader.js:790:12)
at Module.require (internal/modules/cjs/loader.js:974:19)
at require (internal/modules/cjs/helpers.js:93:18)
at Object.<anonymous> (/home/andrewosh/Development/@hypercore-skunkworks/hypercore-next/test/basic.js:1:14) {
code: 'ERR_UNCAUGHT_EXCEPTION_CAPTURE_ALREADY_SET'
}
----------|---------|----------|---------|---------|-------------------
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
----------|---------|----------|---------|---------|-------------------
All files | 0 | 0 | 0 | 0 |
----------|---------|----------|---------|---------|-------------------
When brittle is installed globally
npm i brittle -g
, there seems to be the following issue with exception capturing: