Need help with earl?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

172 Stars 8 Forks MIT License 118 Commits 16 Opened issues


☕ Ergonomic, modern and type-safe assertion library for TypeScript

Services available


Need anything else?

Contributors list


Ergonomic, modern and type-safe assertion library for TypeScript

Brings good parts of Jest back to good ol' Mocha

Build status Software License All contributors


  • 💪 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


npm install --save-dev earljs


import { expect } from 'earljs'

// ...

expect(response).toEqual({ body: { trimmed: true, timestamp: expect.a(String) }, })


✨ Contributors

We welcome all kinds of contributions! Read our contributing guide.

Thanks goes to these wonderful people (emoji key):

Kris Kaczor

💻 🤔 🎨 📖 🚧

Piotr Szlachciak

💻 🤔 🎨 📖 🚧

Artur Kozak


Leonid Logvinov

📖 💻

Ivan Pantic



💻 📖

Krzysztof Jelski


Rafał Krupiński

🐛 💻

Earl logo by @sz-piotr


Kris Kaczor MIT

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.