Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
karma-stacktrace
Advanced tools
Provides human-readable sourcemapped stacktrace for karma running in a browser.
This is a karma framework for providing human-readable sourcemapped stacktraces in a browser.
Popular test frameworks (Jasmine, QUnit) uses non-standard stack
property of Error
objects to output a trace when unit tests fail for some reasons. Stacktraces are intended to assist in understanding causes of failed tests, but they become useless without applied sourcemaps. Modern browsers support sourcemaps when viewing stacktraces from errors in their native console, but there is no support for applying sourcemaps to the Error.prototype.stack
.
Exampled of an unmapped stacktrace for a failed test:
The framework is designed to catch failed tests and provide sourcemapped stacktraces by using stacktrace-js library. It also clears stacktraces from usually useless traces of a testing framework. At the same time it does not affect original stacktraces.
npm install karma-stacktrace
Add stacktrace
to a list of frameworks in a corresponding karma configuration:
//karma.conf.js
module.exports = function(config) {
config.set({
//...
frameworks: ['stacktrace'],
//...
});
};
FAQs
Provides readable mapped stacktrace for failed tests to debug the them in your browser.
The npm package karma-stacktrace receives a total of 1,382 weekly downloads. As such, karma-stacktrace popularity was classified as popular.
We found that karma-stacktrace demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.