Socket
Socket
Sign inDemoInstall

jest-jasmine2

Package Overview
Dependencies
Maintainers
6
Versions
309
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jest-jasmine2 - npm Package Compare versions

Comparing version 29.0.3 to 29.1.0

11

build/assertionErrorMessage.js

@@ -113,2 +113,13 @@ 'use strict';

if (operatorName === 'throws') {
if (error.generatedMessage) {
return (
buildHintString(assertThrowingMatcherHint(operatorName)) +
_chalk.default.reset(error.message) +
_chalk.default.reset(
hasCustomMessage ? `\n\nMessage:\n ${message}` : ''
) +
trimmedStack
);
}
return (

@@ -115,0 +126,0 @@ buildHintString(assertThrowingMatcherHint(operatorName)) +

13

build/jasmineAsyncInstall.js

@@ -14,2 +14,4 @@ 'use strict';

var _jestUtil = require('jest-util');
var _isError = _interopRequireDefault(require('./isError'));

@@ -26,6 +28,3 @@

function isPromise(obj) {
return obj && typeof obj.then === 'function';
} // eslint-disable-next-line @typescript-eslint/no-empty-function
// eslint-disable-next-line @typescript-eslint/no-empty-function
const doneFnNoop = () => {}; // eslint-disable-next-line @typescript-eslint/no-empty-function

@@ -76,3 +75,3 @@

if (isPromise(returnValue)) {
if ((0, _jestUtil.isPromise)(returnValue)) {
returnValue.then(done.bind(null, null), error => {

@@ -138,3 +137,3 @@ const {isError: checkIsError, message} = (0, _isError.default)(error);

if (isPromise(returnValue)) {
if ((0, _jestUtil.isPromise)(returnValue)) {
returnValue.then(done.bind(null, null), error => {

@@ -182,3 +181,3 @@ const {isError: checkIsError, message} = (0, _isError.default)(error);

if (isPromise(promise)) {
if ((0, _jestUtil.isPromise)(promise)) {
return promise;

@@ -185,0 +184,0 @@ }

{
"name": "jest-jasmine2",
"version": "29.0.3",
"version": "29.1.0",
"repository": {

@@ -20,7 +20,7 @@ "type": "git",

"dependencies": {
"@jest/environment": "^29.0.3",
"@jest/expect": "^29.0.3",
"@jest/environment": "^29.1.0",
"@jest/expect": "^29.1.0",
"@jest/source-map": "^29.0.0",
"@jest/test-result": "^29.0.3",
"@jest/types": "^29.0.3",
"@jest/test-result": "^29.1.0",
"@jest/types": "^29.1.0",
"@types/node": "*",

@@ -30,10 +30,10 @@ "chalk": "^4.0.0",

"is-generator-fn": "^2.0.0",
"jest-each": "^29.0.3",
"jest-matcher-utils": "^29.0.3",
"jest-message-util": "^29.0.3",
"jest-runtime": "^29.0.3",
"jest-snapshot": "^29.0.3",
"jest-util": "^29.0.3",
"jest-each": "^29.1.0",
"jest-matcher-utils": "^29.1.0",
"jest-message-util": "^29.1.0",
"jest-runtime": "^29.1.0",
"jest-snapshot": "^29.1.0",
"jest-util": "^29.1.0",
"p-limit": "^3.1.0",
"pretty-format": "^29.0.3"
"pretty-format": "^29.1.0"
},

@@ -49,3 +49,3 @@ "devDependencies": {

},
"gitHead": "77f865da39af5b3e1c114dc347e49257eb3dcfd1"
"gitHead": "51f10300daf90db003a1749ceaed1084c4f74811"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc