Socket
Socket
Sign inDemoInstall

expect

Package Overview
Dependencies
42
Maintainers
2
Versions
234
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 30.0.0-alpha.1 to 30.0.0-alpha.2

51

build/index.d.ts

@@ -7,7 +7,6 @@ /**

*/
import type {EqualsFunction} from '@jest/expect-utils';
import type * as jestMatcherUtils from 'jest-matcher-utils';
import {Tester} from '@jest/expect-utils';
import {TesterContext} from '@jest/expect-utils';
import {EqualsFunction, Tester, TesterContext} from '@jest/expect-utils';
import * as jestMatcherUtils from 'jest-matcher-utils';
export declare abstract class AsymmetricMatcher<T>

@@ -108,18 +107,2 @@ implements AsymmetricMatcher_2

/**
* Ensures the last call to a mock function was provided specific args.
*/
lastCalledWith(...expected: Array<unknown>): R;
/**
* Ensure that the last call to a mock function has returned a specified value.
*/
lastReturnedWith(expected?: unknown): R;
/**
* Ensure that a mock function is called with specific arguments on an Nth call.
*/
nthCalledWith(nth: number, ...expected: Array<unknown>): R;
/**
* Ensure that the nth call to a mock function has returned a specified value.
*/
nthReturnedWith(nth: number, expected?: unknown): R;
/**
* Checks that a value is what you expect. It calls `Object.is` to compare values.

@@ -130,14 +113,2 @@ * Don't use `toBe` with floating-point numbers.

/**
* Ensures that a mock function is called.
*/
toBeCalled(): R;
/**
* Ensures that a mock function is called an exact number of times.
*/
toBeCalledTimes(expected: number): R;
/**
* Ensure that a mock function is called with specific arguments.
*/
toBeCalledWith(...expected: Array<unknown>): R;
/**
* Using exact equality with floating point numbers is a bad idea.

@@ -292,14 +263,2 @@ * Rounding means that intuitive things fail.

/**
* Ensure that a mock function has returned (as opposed to thrown) at least once.
*/
toReturn(): R;
/**
* Ensure that a mock function has returned (as opposed to thrown) a specified number of times.
*/
toReturnTimes(expected: number): R;
/**
* Ensure that a mock function has returned a specified value at least once.
*/
toReturnWith(expected?: unknown): R;
/**
* Use to test that objects have the same types as well as structure.

@@ -312,6 +271,2 @@ */

toThrow(expected?: unknown): R;
/**
* If you want to test that a specific error is thrown inside a function.
*/
toThrowError(expected?: unknown): R;
}

@@ -318,0 +273,0 @@

16

package.json
{
"name": "expect",
"version": "30.0.0-alpha.1",
"version": "30.0.0-alpha.2",
"repository": {

@@ -24,11 +24,11 @@ "type": "git",

"dependencies": {
"@jest/expect-utils": "30.0.0-alpha.1",
"jest-get-type": "30.0.0-alpha.1",
"jest-matcher-utils": "30.0.0-alpha.1",
"jest-message-util": "30.0.0-alpha.1",
"jest-util": "30.0.0-alpha.1"
"@jest/expect-utils": "30.0.0-alpha.2",
"jest-get-type": "30.0.0-alpha.2",
"jest-matcher-utils": "30.0.0-alpha.2",
"jest-message-util": "30.0.0-alpha.2",
"jest-util": "30.0.0-alpha.2"
},
"devDependencies": {
"@fast-check/jest": "^1.3.0",
"@jest/test-utils": "30.0.0-alpha.1",
"@jest/test-utils": "30.0.0-alpha.2",
"@tsd/typescript": "^5.0.4",

@@ -45,3 +45,3 @@ "chalk": "^4.0.0",

},
"gitHead": "d005cb2505c041583e0c5636d006e08666a54b63"
"gitHead": "c04d13d7abd22e47b0997f6027886aed225c9ce4"
}

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc