@jest/console
Advanced tools
Comparing version 26.3.0 to 26.5.0
@@ -7,2 +7,3 @@ /** | ||
*/ | ||
/// <reference types="node" /> | ||
import { Console } from 'console'; | ||
@@ -15,2 +16,3 @@ import type { ConsoleBuffer, LogMessage, LogType } from './types'; | ||
private _groupDepth; | ||
Console: NodeJS.ConsoleConstructor; | ||
constructor(); | ||
@@ -17,0 +19,0 @@ static write(buffer: ConsoleBuffer, type: LogType, message: LogMessage, level?: number | null): ConsoleBuffer; |
@@ -78,6 +78,5 @@ 'use strict'; | ||
constructor() { | ||
const buffer = []; | ||
super({ | ||
write: message => { | ||
BufferedConsole.write(buffer, 'log', message, null); | ||
BufferedConsole.write(this._buffer, 'log', message, null); | ||
return true; | ||
@@ -87,14 +86,11 @@ } | ||
_defineProperty(this, '_buffer', void 0); | ||
_defineProperty(this, '_buffer', []); | ||
_defineProperty(this, '_counters', void 0); | ||
_defineProperty(this, '_counters', {}); | ||
_defineProperty(this, '_timers', void 0); | ||
_defineProperty(this, '_timers', {}); | ||
_defineProperty(this, '_groupDepth', void 0); | ||
_defineProperty(this, '_groupDepth', 0); | ||
this._buffer = buffer; | ||
this._counters = {}; | ||
this._timers = {}; | ||
this._groupDepth = 0; | ||
_defineProperty(this, 'Console', _console().Console); | ||
} | ||
@@ -101,0 +97,0 @@ |
@@ -18,2 +18,3 @@ /** | ||
private _groupDepth; | ||
Console: NodeJS.ConsoleConstructor; | ||
constructor(stdout: NodeJS.WriteStream, stderr: NodeJS.WriteStream, formatBuffer?: Formatter); | ||
@@ -20,0 +21,0 @@ private _log; |
@@ -86,14 +86,13 @@ 'use strict'; | ||
_defineProperty(this, '_counters', void 0); | ||
_defineProperty(this, '_counters', {}); | ||
_defineProperty(this, '_timers', void 0); | ||
_defineProperty(this, '_timers', {}); | ||
_defineProperty(this, '_groupDepth', void 0); | ||
_defineProperty(this, '_groupDepth', 0); | ||
_defineProperty(this, 'Console', _console().Console); | ||
this._stdout = stdout; | ||
this._stderr = stderr; | ||
this._formatBuffer = formatBuffer; | ||
this._counters = {}; | ||
this._timers = {}; | ||
this._groupDepth = 0; | ||
} | ||
@@ -100,0 +99,0 @@ |
{ | ||
"name": "@jest/console", | ||
"version": "26.3.0", | ||
"version": "26.5.0", | ||
"repository": { | ||
@@ -13,7 +13,7 @@ "type": "git", | ||
"dependencies": { | ||
"@jest/types": "^26.3.0", | ||
"@jest/types": "^26.5.0", | ||
"@types/node": "*", | ||
"chalk": "^4.0.0", | ||
"jest-message-util": "^26.3.0", | ||
"jest-util": "^26.3.0", | ||
"jest-message-util": "^26.5.0", | ||
"jest-util": "^26.5.0", | ||
"slash": "^3.0.0" | ||
@@ -30,3 +30,3 @@ }, | ||
}, | ||
"gitHead": "3a7e06fe855515a848241bb06a6f6e117847443d" | ||
"gitHead": "68d1b1b638bc7464c2794a957c1b894de7da2ee3" | ||
} |
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
21363
691
Updated@jest/types@^26.5.0
Updatedjest-message-util@^26.5.0
Updatedjest-util@^26.5.0