UNPKG

@tapjs/node-serialize

Version:

Stream TAP test data as a serialized node:test stream

13 lines 545 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.testPointMessageData = void 0; const loc_from_callsite_js_1 = require("./loc-from-callsite.js"); const testPointMessageData = (res, t) => ({ name: res.name, nesting: t.nestingLevel + 1, ...(res.diag?.at ? (0, loc_from_callsite_js_1.locFromCallSite)(res.diag.at) : (0, loc_from_callsite_js_1.locFromCallSite)(t.options.at)), }); exports.testPointMessageData = testPointMessageData; //# sourceMappingURL=test-point-message-data.js.map