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
- This was done to make sure `toHaveBeenCalledWith` will fail if we pass in the wrong Error constructor. For example the assertion will now fail if we pass in an `Error` instead of a `TypeError`.
* Compares two values to determine if they are instances of {@linkcode Error}
10
+
* and have the same {@linkcode Error.name | name}
11
+
* and {@linkcode Error.message | message} properties.
12
+
*
13
+
* @param actualError - The actual error to compare.
14
+
* @param expectedError - The expected error to compare against.
15
+
* @returns `true` if both values are instances of {@linkcode Error} and have the same {@linkcode Error.name | name} and {@linkcode Error.message | message}.
16
+
*
17
+
* @example
18
+
* <caption>#### __Pass: The actual error is an instance of `TypeError` with the same `message` ✔️__</caption>
0 commit comments