earl
earl copied to clipboard
☕ Ergonomic, modern and type-safe assertion library for TypeScript
Hey all, this PR adds a [GitPOAP Badge](https://docs.gitpoap.io/api#get-v1repoownernamebadge) to the README that displays the number of minted GitPOAPs for this repository by contributors to this repo. You can see an...
Current message says: `Mock is not configured`. This should provide info about parameters because mock can be configured for some but not for others.
``` const mock = mockFn() .resolvesToOnce(1) .resolvesToOnce(2) .resolvesToOnce(3) .resolvesTo(4); console.log(mock()) // returns 4 ?????? ```
Investigate if we can support catching async error like this: CC: @7sne ```typescript expect(async () => asyncMethod()).toThrow( Error, 'Assertion Error: Call stack should be empty by the end of the...
Given recursive type `toEqual` fails with `TS2589`. ```ts import { expect } from 'earljs' export type json = | string | number | boolean | null | json[] | {...
**revised after trying out plugin system** Right now if there is a missing matcher, validator, etc in earljs the only way to extend it is using a plugin, a process...
It would be very useful to have a way of combining two matchers by requiring that either or both be true, and increase the flexibility of the library.
It would be very useful to have a matcher `expect.arrayOfStrictly` that checks for an array containing only the specified elements with no extras.
Reported by yarn: ```sh $ yarn explain peer-requirements pc0199 ➤ YN0000: earljs@npm:0.1.12 doesn't provide typescript, breaking the following requirements: ➤ YN0000: ts-essentials@npm:6.0.7 [688f2] → >=3.7.0 ✘ ``` See: https://github.com/krzkaczor/ts-essentials/blob/v6.0.5/package.json#L31 Thanks,...