jest-json-to-tap
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"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, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
30168
20
236