Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jest-json-to-tap

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jest-json-to-tap - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

2

package.json
{
"name": "jest-json-to-tap",
"version": "1.0.2",
"version": "1.0.3",
"description": "Jest Json parser that outputs TAP results",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -8,6 +8,7 @@ /*

const end = output.lastIndexOf('}');
const jsonOutput = output.substring(start, end + 1).replace(',,', ',');
return JSON.parse(output.substring(start, end + 1));
return JSON.parse(jsonOutput);
};
module.exports = parseJestJsonOutput;

@@ -6,9 +6,10 @@ const parseJestJsonOutput = require('../src/parseJestJsonOutput');

it('must return the parsed JSON of `jest --json` output', () => {
Object.keys(raw).forEach((key) => {
expect(parseJestJsonOutput(raw[key]))
.toEqual(expect.objectContaining({
numFailedTestSuites: expect.any(Number)
}));
});
Object.keys(raw)
.forEach((key) => {
expect(parseJestJsonOutput(raw[key]))
.toEqual(expect.objectContaining({
numFailedTestSuites: expect.any(Number)
}));
});
});
});

Sorry, the diff of this file is too big to display

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