You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,6 +45,7 @@
45
45
-`[babel-jest, babel-preset-jest]`[**BREAKING**] Increase peer dependency of `@babel/core` to `^7.11` ([#14109](https://github.com/jestjs/jest/pull/14109))
Copy file name to clipboardExpand all lines: docs/ExpectAPI.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -888,7 +888,7 @@ Check out the section on [Inline Snapshots](SnapshotTesting.md#inline-snapshots)
888
888
889
889
### `expect.anything()`
890
890
891
-
`expect.anything()` matches anything but `null` or `undefined`. You can use it inside `toEqual` or `toBeCalledWith` instead of a literal value. For example, if you want to check that a mock function is called with a non-null argument:
891
+
`expect.anything()` matches anything but `null` or `undefined`. You can use it inside `toEqual` or `toHaveBeenCalledWith` instead of a literal value. For example, if you want to check that a mock function is called with a non-null argument:
892
892
893
893
```js
894
894
test('map calls its argument with a non-null argument', () => {
@@ -900,7 +900,7 @@ test('map calls its argument with a non-null argument', () => {
900
900
901
901
### `expect.any(constructor)`
902
902
903
-
`expect.any(constructor)` matches anything that was created with the given constructor or if it's a primitive that is of the passed type. You can use it inside `toEqual` or `toBeCalledWith` instead of a literal value. For example, if you want to check that a mock function is called with a number:
903
+
`expect.any(constructor)` matches anything that was created with the given constructor or if it's a primitive that is of the passed type. You can use it inside `toEqual` or `toHaveBeenCalledWith` instead of a literal value. For example, if you want to check that a mock function is called with a number:
904
904
905
905
```js
906
906
classCat {}
@@ -931,7 +931,7 @@ test('randocall calls its callback with a number', () => {
931
931
932
932
You can use it instead of a literal value:
933
933
934
-
- in `toEqual` or `toBeCalledWith`
934
+
- in `toEqual` or `toHaveBeenCalledWith`
935
935
- to match a property in `objectContaining` or `toMatchObject`
Copy file name to clipboardExpand all lines: website/versioned_docs/version-29.4/ExpectAPI.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -888,7 +888,7 @@ Check out the section on [Inline Snapshots](SnapshotTesting.md#inline-snapshots)
888
888
889
889
### `expect.anything()`
890
890
891
-
`expect.anything()` matches anything but `null` or `undefined`. You can use it inside `toEqual` or `toBeCalledWith` instead of a literal value. For example, if you want to check that a mock function is called with a non-null argument:
891
+
`expect.anything()` matches anything but `null` or `undefined`. You can use it inside `toEqual` or `toHaveBeenCalledWith` instead of a literal value. For example, if you want to check that a mock function is called with a non-null argument:
892
892
893
893
```js
894
894
test('map calls its argument with a non-null argument', () => {
@@ -900,7 +900,7 @@ test('map calls its argument with a non-null argument', () => {
900
900
901
901
### `expect.any(constructor)`
902
902
903
-
`expect.any(constructor)` matches anything that was created with the given constructor or if it's a primitive that is of the passed type. You can use it inside `toEqual` or `toBeCalledWith` instead of a literal value. For example, if you want to check that a mock function is called with a number:
903
+
`expect.any(constructor)` matches anything that was created with the given constructor or if it's a primitive that is of the passed type. You can use it inside `toEqual` or `toHaveBeenCalledWith` instead of a literal value. For example, if you want to check that a mock function is called with a number:
904
904
905
905
```js
906
906
classCat {}
@@ -931,7 +931,7 @@ test('randocall calls its callback with a number', () => {
931
931
932
932
You can use it instead of a literal value:
933
933
934
-
- in `toEqual` or `toBeCalledWith`
934
+
- in `toEqual` or `toHaveBeenCalledWith`
935
935
- to match a property in `objectContaining` or `toMatchObject`
Copy file name to clipboardExpand all lines: website/versioned_docs/version-29.5/ExpectAPI.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -888,7 +888,7 @@ Check out the section on [Inline Snapshots](SnapshotTesting.md#inline-snapshots)
888
888
889
889
### `expect.anything()`
890
890
891
-
`expect.anything()` matches anything but `null` or `undefined`. You can use it inside `toEqual` or `toBeCalledWith` instead of a literal value. For example, if you want to check that a mock function is called with a non-null argument:
891
+
`expect.anything()` matches anything but `null` or `undefined`. You can use it inside `toEqual` or `toHaveBeenCalledWith` instead of a literal value. For example, if you want to check that a mock function is called with a non-null argument:
892
892
893
893
```js
894
894
test('map calls its argument with a non-null argument', () => {
@@ -900,7 +900,7 @@ test('map calls its argument with a non-null argument', () => {
900
900
901
901
### `expect.any(constructor)`
902
902
903
-
`expect.any(constructor)` matches anything that was created with the given constructor or if it's a primitive that is of the passed type. You can use it inside `toEqual` or `toBeCalledWith` instead of a literal value. For example, if you want to check that a mock function is called with a number:
903
+
`expect.any(constructor)` matches anything that was created with the given constructor or if it's a primitive that is of the passed type. You can use it inside `toEqual` or `toHaveBeenCalledWith` instead of a literal value. For example, if you want to check that a mock function is called with a number:
904
904
905
905
```js
906
906
classCat {}
@@ -931,7 +931,7 @@ test('randocall calls its callback with a number', () => {
931
931
932
932
You can use it instead of a literal value:
933
933
934
-
- in `toEqual` or `toBeCalledWith`
934
+
- in `toEqual` or `toHaveBeenCalledWith`
935
935
- to match a property in `objectContaining` or `toMatchObject`
0 commit comments