README
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
- π Builtin support for mocks
- β Works great with Mocha
- πΈ Snapshot testing
- π Extensible with plugins
Installation
npm install --save-dev earljs
Example
import { expect } from 'earljs'
// ...
expect(response).toEqual({
body: { trimmed: true, timestamp: expect.a(String) },
})
Docs
β¨ Contributors
We welcome all kinds of contributions! Read our contributing guide.
Thanks goes to these wonderful people (emoji key):
Earl logo by @sz-piotr
License
dΞth MIT