mix-n-matchers
TypeScript icon, indicating that this package has built-in type declarations

1.8.0 • Public • Published

mix-n-matchers

Miscellaneous custom Jest matchers.

expect(mock).toHaveBeenCalledWithContext(expect.exactly(service));

expect(iterable).toContainSequence(1, 2, 3);

expect(getDirection()).toBeEnum(Direction);

expect(post).toEqual({
  id: expect.typeOf("string"),
  status: expect.oneOf(["pinned", "archived", undefined]),
});

See website for more information.

/mix-n-matchers/

    Package Sidebar

    Install

    npm i mix-n-matchers

    Weekly Downloads

    380

    Version

    1.8.0

    License

    MIT

    Unpacked Size

    607 kB

    Total Files

    32

    Last publish

    Collaborators

    • eskimojo