From f18e00da80a7cce282ea23a62a042eff4e3ccdd8 Mon Sep 17 00:00:00 2001 From: CertainPerformance <37674520+CertainPerformance@users.noreply.github.com> Date: Thu, 26 Dec 2019 10:45:31 -0600 Subject: [PATCH] [Jest] .toBe uses Object.is, not === (#41250) --- types/jest/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/jest/index.d.ts b/types/jest/index.d.ts index f18402b82c..0246eb9323 100644 --- a/types/jest/index.d.ts +++ b/types/jest/index.d.ts @@ -757,7 +757,7 @@ declare namespace jest { */ nthReturnedWith(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.