Skip to content
/ earl Public
forked from l2beat/earl

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

License

Notifications You must be signed in to change notification settings

grzpab/earl

 
 

Repository files navigation

Earl

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

Features

  • 💪 Powerful validators and matchers
  • 🤖 Type-safe - written in TypeScript and goes well with static analysis
  • 🎭 Builtin support for mocks
  • ☕ Works great with 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):

Kris Kaczor
Kris Kaczor

💻 📖 🤔
Piotr Szlachciak
Piotr Szlachciak

💻 🤔 🎨
Artur Kozak
Artur Kozak

🤔
Leonid Logvinov
Leonid Logvinov

📖 💻
Ivan Pantic
Ivan Pantic

📖
grzpab
grzpab

💻

Contributions of any kind welcome!

Earl logo by @sz-piotr

License

Kris Kaczor MIT

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 80.3%
  • JavaScript 15.1%
  • CSS 4.4%
  • Shell 0.2%