@sprucelabs/jest-json-reporter
Advanced tools
Comparing version 5.1.23 to 5.1.24
@@ -22,3 +22,3 @@ import { AggregatedResult, Context, Reporter, Test, TestResult } from '@jest/reporters'; | ||
export declare const END_DIVIDER = "***************************END_JSON_DIVIDER***************************"; | ||
export default class SheetsReporter implements Reporter { | ||
export default class JsonReporter implements Reporter { | ||
onTestFileResult(test: Test, testResult: TestResult, aggregatedResult: AggregatedResult): void; | ||
@@ -25,0 +25,0 @@ onRunStart(results: AggregatedResult): void; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.END_DIVIDER = exports.START_DIVIDER = void 0; | ||
const cycle_1 = require("./cycle"); | ||
exports.START_DIVIDER = '***************************START_JSON_DIVIDER***************************'; | ||
exports.END_DIVIDER = '***************************END_JSON_DIVIDER***************************'; | ||
class SheetsReporter { | ||
class JsonReporter { | ||
onTestFileResult(test, testResult, aggregatedResult) { | ||
@@ -34,3 +35,4 @@ this.render({ | ||
render(obj) { | ||
const toWrite = exports.START_DIVIDER + JSON.stringify(obj) + exports.END_DIVIDER + '\n'; | ||
const string = cycle_1.cycle(obj); | ||
const toWrite = exports.START_DIVIDER + JSON.stringify(string) + exports.END_DIVIDER + '\n'; | ||
console.log(toWrite); | ||
@@ -42,3 +44,3 @@ } | ||
} | ||
exports.default = SheetsReporter; | ||
exports.default = JsonReporter; | ||
//# sourceMappingURL=JsonReporter.js.map |
@@ -9,3 +9,3 @@ { | ||
], | ||
"version": "5.1.23", | ||
"version": "5.1.24", | ||
"main": "./build/JsonReporter.js", | ||
@@ -12,0 +12,0 @@ "types": "./build/JsonReporter.d.ts", |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
20328
14
294
1