[Jest] .toBe uses Object.is, not === (#41250)

This commit is contained in:
CertainPerformance 2019-12-26 10:45:31 -06:00 committed by Andrew Branch
parent 935f7825f4
commit f18e00da80

View File

@ -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.