expect
Advanced tools
Comparing version 30.0.0-alpha.1 to 30.0.0-alpha.2
@@ -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 @@ |
{ | ||
"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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
124349
2571
+ Added@jest/expect-utils@30.0.0-alpha.2(transitive)
+ Added@jest/schemas@30.0.0-alpha.2(transitive)
+ Added@jest/types@30.0.0-alpha.2(transitive)
+ Addeddiff-sequences@30.0.0-alpha.2(transitive)
+ Addedjest-diff@30.0.0-alpha.2(transitive)
+ Addedjest-get-type@30.0.0-alpha.2(transitive)
+ Addedjest-matcher-utils@30.0.0-alpha.2(transitive)
+ Addedjest-message-util@30.0.0-alpha.2(transitive)
+ Addedjest-util@30.0.0-alpha.2(transitive)
+ Addedpicomatch@3.0.1(transitive)
+ Addedpretty-format@30.0.0-alpha.2(transitive)
- Removed@jest/expect-utils@30.0.0-alpha.1(transitive)
- Removed@jest/schemas@30.0.0-alpha.1(transitive)
- Removed@jest/types@30.0.0-alpha.1(transitive)
- Removeddiff-sequences@30.0.0-alpha.1(transitive)
- Removedjest-diff@30.0.0-alpha.1(transitive)
- Removedjest-get-type@30.0.0-alpha.1(transitive)
- Removedjest-matcher-utils@30.0.0-alpha.1(transitive)
- Removedjest-message-util@30.0.0-alpha.1(transitive)
- Removedjest-util@30.0.0-alpha.1(transitive)
- Removedpretty-format@30.0.0-alpha.1(transitive)
Updatedjest-get-type@30.0.0-alpha.2
Updatedjest-util@30.0.0-alpha.2