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 2.0.0 to 2.0.1

15

index.js
#!/usr/bin/env node
const streamBuffers = require('stream-buffers');
const parseJestJsonOutput = require('./src/parseJestJsonOutput');

@@ -7,13 +8,11 @@ const jestOutputToTab = require('./src/jestOutputToTap');

const stdout = process.stdout;
const inputChunks = [];
const dataStreamBuffer = new streamBuffers.WritableStreamBuffer({
incrementAmount: 10 * 1024,
initialSize: 100 * 1024
});
stdin.resume();
stdin.setEncoding('utf8');
stdin.pipe(dataStreamBuffer);
stdin.on('data', (chunk) => {
inputChunks.push(chunk);
});
stdin.on('end', () => {
const jestJsonOutput = inputChunks.join();
const jestJsonOutput = dataStreamBuffer.getContentsAsString('utf8');
const jestOutput = parseJestJsonOutput(jestJsonOutput);

@@ -20,0 +19,0 @@

{
"name": "jest-json-to-tap",
"version": "2.0.0",
"version": "2.0.1",
"description": "Jest Json parser that outputs TAP results",

@@ -42,3 +42,6 @@ "main": "index.js",

]
},
"dependencies": {
"stream-buffers": "^3.0.1"
}
}
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