@jest/console
Advanced tools
Comparing version 29.6.2 to 29.6.3
@@ -72,3 +72,3 @@ 'use strict'; | ||
).stack; | ||
invariant(rawStack != null, 'always have a stack trace'); | ||
(0, _jestUtil().invariant)(rawStack != null, 'always have a stack trace'); | ||
const origin = rawStack | ||
@@ -101,3 +101,3 @@ .split('\n') | ||
} | ||
// https://github.com/facebook/jest/pull/13422#issuecomment-1273396392 | ||
// https://github.com/jestjs/jest/pull/13422#issuecomment-1273396392 | ||
this._log('assert', error.toString().replace(/:\n\n.*\n/gs, '')); | ||
@@ -200,6 +200,1 @@ } | ||
exports.default = BufferedConsole; | ||
function invariant(condition, message) { | ||
if (!condition) { | ||
throw new Error(message); | ||
} | ||
} |
@@ -85,3 +85,3 @@ 'use strict'; | ||
} | ||
// https://github.com/facebook/jest/pull/13422#issuecomment-1273396392 | ||
// https://github.com/jestjs/jest/pull/13422#issuecomment-1273396392 | ||
this._logError('assert', error.toString().replace(/:\n\n.*\n/gs, '')); | ||
@@ -88,0 +88,0 @@ } |
{ | ||
"name": "@jest/console", | ||
"version": "29.6.2", | ||
"version": "29.6.3", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/facebook/jest.git", | ||
"url": "https://github.com/jestjs/jest.git", | ||
"directory": "packages/jest-console" | ||
@@ -20,11 +20,11 @@ }, | ||
"dependencies": { | ||
"@jest/types": "^29.6.1", | ||
"@jest/types": "^29.6.3", | ||
"@types/node": "*", | ||
"chalk": "^4.0.0", | ||
"jest-message-util": "^29.6.2", | ||
"jest-util": "^29.6.2", | ||
"jest-message-util": "^29.6.3", | ||
"jest-util": "^29.6.3", | ||
"slash": "^3.0.0" | ||
}, | ||
"devDependencies": { | ||
"@jest/test-utils": "^29.6.2" | ||
"@jest/test-utils": "^29.6.3" | ||
}, | ||
@@ -37,3 +37,3 @@ "engines": { | ||
}, | ||
"gitHead": "0fd5b1c37555f485c56a6ad2d6b010a72204f9f6" | ||
"gitHead": "fb7d95c8af6e0d65a8b65348433d8a0ea0725b5b" | ||
} |
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
19014
632
Updated@jest/types@^29.6.3
Updatedjest-message-util@^29.6.3
Updatedjest-util@^29.6.3