@itwin/certa
Version:
A mocha-based integration test runner
15 lines • 967 B
JavaScript
;
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------------------------------------------------------------------*/
// NB: This file is not a CommonJs module - it needs to run in the browser. Do not import or export modules here!
sourceMapSupport.install();
// The source-map-support package does not correctly format stack traces from the browser.
// It gets pretty close though, so we'll just monkey-patch here to fix them.
const originalPrepareStackTrace = Error.prepareStackTrace;
Error.prepareStackTrace = function (...args) {
const res = originalPrepareStackTrace.call(this, ...args);
return res.replace(/\(.*file:(\/|\\)/g, "(").replace(/at .*file:(\/|\\)/g, "at ");
};
//# sourceMappingURL=initSourceMaps.js.map