UNPKG

@tapjs/node-serialize

Version:

Stream TAP test data as a serialized node:test stream

13 lines 507 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.locFromCallSite = void 0; const path_1 = require("path"); const locFromCallSite = (loc) => { const f = loc?.fileName ?? undefined; const file = f !== undefined ? (0, path_1.resolve)(f) : f; const line = loc?.lineNumber ?? undefined; const column = loc?.columnNumber ?? undefined; return { file, line, column }; }; exports.locFromCallSite = locFromCallSite; //# sourceMappingURL=loc-from-callsite.js.map