New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

karma-json-result-reporter

Package Overview
Dependencies
Maintainers
3
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

karma-json-result-reporter - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0

4

package.json
{
"name": "karma-json-result-reporter",
"version": "0.1.0",
"version": "0.2.0",
"description": "test results as json file",

@@ -27,4 +27,4 @@ "main": "index.js",

"dependencies": {
"ramda": "^0.19.1"
"fun-map": "^3.3.1"
}
}
# Karma JSON result reporter
[![npm version](https://img.shields.io/npm/v/karma-json-result-reporter.svg?style=plastic)](https://www.npmjs.com/package/karma-json-result-reporter)
This is a karma reporter that will export your test data in the form of JSON but keys all describe contexts such as:

@@ -38,4 +41,4 @@

In your `karma.conf.js` add
- `'karma-json-result-reporter'` to your plugins like below:
- `'json-result'` to your reporters like below:
- `'karma-json-result-reporter'` to your plugins
- `'json-result'` to your reporters

@@ -42,0 +45,0 @@ ```

@@ -1,2 +0,2 @@

var R = require('ramda');
var funMap = require('fun-map');

@@ -18,6 +18,13 @@ function simplifyResult(result) {

function getPathArray(result) {
var path = result.suite.slice();
path.push(result.description);
return path;
}
function reduceToObject(accumulator, result) {
var simplifiedResult = simplifyResult(result);
var path = R.append(result.description, result.suite);
return R.assocPath(path, simplifiedResult, accumulator);
var path = getPathArray(result);
return funMap.assocInM(accumulator, path, simplifiedResult);
}

@@ -24,0 +31,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc