Socket
Socket
Sign inDemoInstall

jest-extended

Package Overview
Dependencies
Maintainers
2
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jest-extended - npm Package Compare versions

Comparing version 3.2.4 to 4.0.0

dist/matchers/toHaveBeenCalledExactlyOnceWith.js

10

dist/matchers/index.js

@@ -330,12 +330,12 @@ "use strict";

});
Object.defineProperty(exports, "toHaveBeenCalledOnce", {
Object.defineProperty(exports, "toHaveBeenCalledExactlyOnceWith", {
enumerable: true,
get: function () {
return _toHaveBeenCalledOnce.toHaveBeenCalledOnce;
return _toHaveBeenCalledExactlyOnceWith.toHaveBeenCalledExactlyOnceWith;
}
});
Object.defineProperty(exports, "toHaveBeenCalledOnceWith", {
Object.defineProperty(exports, "toHaveBeenCalledOnce", {
enumerable: true,
get: function () {
return _toHaveBeenCalledOnceWith.toHaveBeenCalledOnceWith;
return _toHaveBeenCalledOnce.toHaveBeenCalledOnce;
}

@@ -486,3 +486,3 @@ });

var _toHaveBeenCalledOnce = require("./toHaveBeenCalledOnce");
var _toHaveBeenCalledOnceWith = require("./toHaveBeenCalledOnceWith");
var _toHaveBeenCalledExactlyOnceWith = require("./toHaveBeenCalledExactlyOnceWith");
var _toInclude = require("./toInclude");

@@ -489,0 +489,0 @@ var _toIncludeAllMembers = require("./toIncludeAllMembers");

{
"name": "jest-extended",
"version": "3.2.4",
"version": "4.0.0",
"description": "Additional Jest matchers",

@@ -60,3 +60,3 @@ "main": "dist/index.js",

"prettier": "^2.3.2",
"typescript": "^4.4.3"
"typescript": "^5.0.0"
},

@@ -63,0 +63,0 @@ "dependencies": {

/* eslint-disable @typescript-eslint/no-explicit-any */
interface CustomMatchers<R> {
interface CustomMatchers<R> extends Record<string, any> {
/**

@@ -149,3 +149,3 @@ * Note: Currently unimplemented

*/
toHaveBeenCalledBefore(mock: jest.MockInstance<unknown, unknown[]>, failIfNoSecondInvocation: boolean): R;
toHaveBeenCalledBefore(mock: jest.MockInstance<any, any[]>, failIfNoSecondInvocation: boolean): R;

@@ -160,3 +160,3 @@ /**

*/
toHaveBeenCalledAfter(mock: jest.MockInstance<unknown, unknown[]>, failIfNoFirstInvocation: boolean): R;
toHaveBeenCalledAfter(mock: jest.MockInstance<any, any[]>, failIfNoFirstInvocation: boolean): R;

@@ -169,5 +169,5 @@ /**

/**
* Use `.toHaveBeenCalledOnceWith` to check if a `Mock` was called exactly one time with the expected value.
* Use `.toHaveBeenCalledExactlyOnceWith` to check if a `Mock` was called exactly one time with the expected value.
*/
toHaveBeenCalledOnceWith(): R;
toHaveBeenCalledExactlyOnceWith(): R;

@@ -586,3 +586,3 @@ /**

*/
toHaveBeenCalledBefore(mock: jest.MockInstance<unknown, unknown[]>, failIfNoSecondInvocation?: boolean): R;
toHaveBeenCalledBefore(mock: jest.MockInstance<any, any[]>, failIfNoSecondInvocation?: boolean): R;

@@ -597,3 +597,3 @@ /**

*/
toHaveBeenCalledAfter(mock: jest.MockInstance<unknown, unknown[]>, failIfNoFirstInvocation?: boolean): R;
toHaveBeenCalledAfter(mock: jest.MockInstance<any, any[]>, failIfNoFirstInvocation?: boolean): R;

@@ -606,5 +606,5 @@ /**

/**
* Use `.toHaveBeenCalledOnceWith` to check if a `Mock` was called exactly one time with the expected value.
* Use `.toHaveBeenCalledExactlyOnceWith` to check if a `Mock` was called exactly one time with the expected value.
*/
toHaveBeenCalledOnceWith(...args: unknown[]): R;
toHaveBeenCalledExactlyOnceWith(...args: unknown[]): R;

@@ -889,2 +889,3 @@ /**

// removed since vitest 0.31.0. Usefull for every vitest version before 0.31.0
declare namespace Vi {

@@ -894,1 +895,12 @@ // eslint-disable-next-line @typescript-eslint/no-empty-interface

}
// Changed since vitest 0.31.0. Usefull for every vitest version after 0.31.0
declare module 'vitest' {
// eslint-disable-next-line @typescript-eslint/no-empty-interface
interface AsymmetricMatchersContaining extends CustomMatchers<any> {}
}
declare module 'jest-extended' {
const matchers: CustomMatchers<any>;
export = matchers;
}
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