![Earl](https://raw.githubusercontent.com/krzkaczor/earl/master/docs/images/gh-cover.png)
Ergonomic, modern and type-safe assertion library for TypeScript
Brings good parts of Jest back to good ol' Mocha
Features
- 💪 Powerful validators and matchers
- 🤖 Type-safe - written in TypeScript and goes well with static analysis
- ✍ AutoFix - magically writes missing assertions for you
- 🎭 Builtin support for mocks
- 🏃♂️ Integration with test runners (mocha)
Installation
npm install --save-dev earljs
Example
import { expect } from 'earljs'
expect(response).toEqual({
body: { trimmed: true, timestamp: expect.a(String) },
})
Docs
✨ Contributors
Our contributing guide.
Thanks goes to these wonderful people
(emoji key):
Contributions of any kind welcome!
Earl logo by @sz-piotr
License
Kris Kaczor MIT