mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
[Jest] .toBe uses Object.is, not === (#41250)
This commit is contained in:
parent
935f7825f4
commit
f18e00da80
2
types/jest/index.d.ts
vendored
2
types/jest/index.d.ts
vendored
@ -757,7 +757,7 @@ declare namespace jest {
|
||||
*/
|
||||
nthReturnedWith<E = any>(n: number, value: E): R;
|
||||
/**
|
||||
* Checks that a value is what you expect. It uses `===` to check strict equality.
|
||||
* Checks that a value is what you expect. It uses `Object.is` to check strict equality.
|
||||
* Don't use `toBe` with floating-point numbers.
|
||||
*
|
||||
* Optionally, you can provide a type for the expected value via a generic.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user