Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 464 Bytes

README.md

File metadata and controls

20 lines (13 loc) · 464 Bytes

mix-n-matchers

logo

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.