@jakobkg/expect
    Preparing search index...

    Type Alias Expect<T>

    Expect: Matchers<T> & { not: Matchers<T> }

    The value returned by expect: every matcher that applies to T, plus their negated forms under not.

    Type Parameters

    • T

    Type Declaration

    • not: Matchers<T>

      The same matchers with their outcome inverted: each one throws when its positive form would pass.

      expect([1, 2, 3]).not.toContain(4);