MCPcopy
hub / github.com/jestjs/jest / toBe

Method toBe

packages/expect/src/types.ts:153–153  ·  view source on GitHub ↗

* Checks that a value is what you expect. It calls `Object.is` to compare values. * Don't use `toBe` with floating-point numbers.

(expected: unknown)

Source from the content-addressed store, hash-verified

151 * Don't use `toBe` with floating-point numbers.
152 */
153 toBe(expected: unknown): R;
154 /**
155 * Using exact equality with floating point numbers is a bad idea.
156 * Rounding means that intuitive things fail.

Calls

no outgoing calls

Tested by 15

expectUnmockedFunction · 0.64
setupDuplicatesFunction · 0.64
asyncResolverFunction · 0.64
syncResolverFunction · 0.64
findCommonItemsFunction · 0.64
toBeOneFunction · 0.64
tester1Function · 0.64
toBeWithinRangeFunction · 0.64
toHaveContextFunction · 0.64
customContextFunction · 0.64
customContextAndExpectedFunction · 0.64