@jest/console
Advanced tools
Comparing version 26.0.1 to 26.1.0
@@ -7,4 +7,6 @@ /** | ||
*/ | ||
import { StackTraceConfig } from 'jest-message-util'; | ||
import type { Config } from '@jest/types'; | ||
import type { ConsoleBuffer } from './types'; | ||
declare const _default: (root: string, verbose: boolean, buffer: ConsoleBuffer, config?: Pick<import("@jest/types/build/Config").ProjectConfig, "rootDir" | "testMatch">) => string; | ||
declare const _default: (root: string, verbose: boolean, buffer: ConsoleBuffer, config?: StackTraceConfig, globalConfig?: Config.GlobalConfig | undefined) => string; | ||
export default _default; |
@@ -41,7 +41,8 @@ 'use strict'; | ||
verbose, | ||
buffer, // TODO: make mandatory and take Config.ProjectConfig in 26 | ||
buffer, // TODO: make mandatory and take Config.ProjectConfig in 27 | ||
config = { | ||
rootDir: root, | ||
testMatch: [] | ||
} | ||
}, | ||
globalConfig | ||
) => { | ||
@@ -60,10 +61,28 @@ const TITLE_INDENT = verbose ? ' ' : ' '; | ||
if (type === 'warn') { | ||
var _globalConfig$noStack; | ||
message = _chalk().default.yellow(message); | ||
typeMessage = _chalk().default.yellow(typeMessage); | ||
noStackTrace = false; | ||
noStackTrace = | ||
(_globalConfig$noStack = | ||
globalConfig === null || globalConfig === void 0 | ||
? void 0 | ||
: globalConfig.noStackTrace) !== null && | ||
_globalConfig$noStack !== void 0 | ||
? _globalConfig$noStack | ||
: false; | ||
noCodeFrame = false; | ||
} else if (type === 'error') { | ||
var _globalConfig$noStack2; | ||
message = _chalk().default.red(message); | ||
typeMessage = _chalk().default.red(typeMessage); | ||
noStackTrace = false; | ||
noStackTrace = | ||
(_globalConfig$noStack2 = | ||
globalConfig === null || globalConfig === void 0 | ||
? void 0 | ||
: globalConfig.noStackTrace) !== null && | ||
_globalConfig$noStack2 !== void 0 | ||
? _globalConfig$noStack2 | ||
: false; | ||
noCodeFrame = false; | ||
@@ -70,0 +89,0 @@ } |
{ | ||
"name": "@jest/console", | ||
"version": "26.0.1", | ||
"version": "26.1.0", | ||
"repository": { | ||
@@ -13,6 +13,6 @@ "type": "git", | ||
"dependencies": { | ||
"@jest/types": "^26.0.1", | ||
"@jest/types": "^26.1.0", | ||
"chalk": "^4.0.0", | ||
"jest-message-util": "^26.0.1", | ||
"jest-util": "^26.0.1", | ||
"jest-message-util": "^26.1.0", | ||
"jest-util": "^26.1.0", | ||
"slash": "^3.0.0" | ||
@@ -29,3 +29,3 @@ }, | ||
}, | ||
"gitHead": "40b8e1e157c9981dda5a68d73fff647e80fc9f5c" | ||
"gitHead": "817d8b6aca845dd4fcfd7f8316293e69f3a116c5" | ||
} |
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
20436
662
Updated@jest/types@^26.1.0
Updatedjest-message-util@^26.1.0
Updatedjest-util@^26.1.0