mix-n-matchers
v1.8.0
Published
Miscellaneous custom Jest matchers
Downloads
1,238
Maintainers
Readme
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.