☕ Ergonomic, modern and type-safe assertion library for TypeScript
MIT License
Bot releases are visible (Hide)
Published by krzkaczor almost 4 years ago
This is the first stable release of earl. From now on, we will publish changelogs.
Earl is an ergonomic, modern and type-safe assertion library for TypeScript
There are many changes in this version, most important are:
Remove autofix - it was a controversial feature but most importantly it was complicating codebase in unexpected ways. I still feel like it could make a comeback but maybe in a way closer to jest's snapshot.
Redesign some APIs for convenience - in some situations we preferred the consistency above the convenience of the interfaces. For example toThrow
worked with non-errors and needed to be combined with expect.error
matcher for any meaningful results. We decided to simplify it and make toThrow
work only with errors.
Redesign mocks - now mocks are generally simpler, we got rid of string / loose mocks and earl features only one design of mocks.
Moved earl development to a separate org - we hope this will help to build a community around the project faster
The whole documentation was updated, so to view the current API see: https://earljs.dev/docs/api/api-reference