jest

Bun

Symbol

jest

namespace jest

  • type Mock<T extends (...args: any[]) => any = (...args: any[]) => any> = JestMock.Mock<T>

    Constructs the type of a mock function, e.g. the return type of jest.fn().

  • type Replaced<T> = JestMock.Replaced<T>

    Constructs the type of a replaced property.

  • type Spied<T extends JestMock.ClassLike | (...args: any[]) => any> = JestMock.Spied<T>

    Constructs the type of a spied class or function.

  • type SpiedClass<T extends JestMock.ClassLike> = JestMock.SpiedClass<T>

    Constructs the type of a spied class.

  • type SpiedFunction<T extends (...args: any[]) => any> = JestMock.SpiedFunction<T>

    Constructs the type of a spied function.

  • type SpiedGetter<T> = JestMock.SpiedGetter<T>

    Constructs the type of a spied getter.

  • type SpiedSetter<T> = JestMock.SpiedSetter<T>

    Constructs the type of a spied setter.