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.1 to 1.0.2

test/fixtures/coverageTestJsonOutput.txt

2

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

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

@@ -6,3 +6,3 @@ /*

const parseJestJsonOutput = (output) => {
const start = output.indexOf('{');
const start = output.lastIndexOf('{', output.indexOf('numFailedTestSuites'));
const end = output.lastIndexOf('}');

@@ -9,0 +9,0 @@

const parseJestJsonOutput = require('../../src/parseJestJsonOutput');
const {
debugTestJsonOutput,
failingTestJsonOutput,
severalTestsJsonOutputs,
singleTestJsonOutput,
skippedTestJsonOutput
skippedTestJsonOutput,
coverageTestJsonOutput
} = require('./raw');
const fixtures = {
coverageTestJsonOutput: parseJestJsonOutput(coverageTestJsonOutput),
debugTestJsonOutput: parseJestJsonOutput(debugTestJsonOutput),
failingTestResult: parseJestJsonOutput(failingTestJsonOutput),

@@ -11,0 +15,0 @@ severalTestResults: parseJestJsonOutput(severalTestsJsonOutputs),

@@ -8,4 +8,8 @@ const fs = require('fs');

const skippedTestJsonOutput = fs.readFileSync(path.join(__dirname, 'skippedTestJsonOutput.txt'), 'utf8');
const debugTestJsonOutput = fs.readFileSync(path.join(__dirname, 'debugTestJsonOutput.txt'), 'utf8');
const coverageTestJsonOutput = fs.readFileSync(path.join(__dirname, 'coverageTestJsonOutput.txt'), 'utf8');
const raw = {
coverageTestJsonOutput,
debugTestJsonOutput,
failingTestJsonOutput,

@@ -12,0 +16,0 @@ severalTestsJsonOutputs,

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