Home / Type/ Expect Type — react Architecture

Expect Type — react Architecture

Architecture documentation for the Expect type/interface in jest.d.ts from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  507f7306_9033_a220_1ee0_37422495c0d8["Expect"]
  b1756f3e_1ac5_9273_3afa_eb918ea11234["jest.d.ts"]
  507f7306_9033_a220_1ee0_37422495c0d8 -->|defined in| b1756f3e_1ac5_9273_3afa_eb918ea11234
  style 507f7306_9033_a220_1ee0_37422495c0d8 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

scripts/jest/typescript/jest.d.ts lines 21–40

interface Expect {
  not: Expect;
  toThrow(message?: string): void;
  toThrowError(message?: string): void;
  toBe(value: any): void;
  toEqual(value: any): void;
  toBeFalsy(): void;
  toBeTruthy(): void;
  toBeNull(): void;
  toBeUndefined(): void;
  toBeDefined(): void;
  toMatch(regexp: RegExp): void;
  toContain(string: string): void;
  toBeCloseTo(number: number, delta: number): void;
  toBeGreaterThan(number: number): void;
  toBeLessThan(number: number): void;
  toBeCalled(): void;
  toBeCalledWith(...arguments): void;
  lastCalledWith(...arguments): void;
}

Frequently Asked Questions

What is the Expect type?
Expect is a type/interface in the react codebase, defined in scripts/jest/typescript/jest.d.ts.
Where is Expect defined?
Expect is defined in scripts/jest/typescript/jest.d.ts at line 21.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free