alcuadrado / earl

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

Home Page:https://earljs.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 Join our discord!

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):


Kris Kaczor

💻 🤔 🎨 📖 🚧

Piotr Szlachciak

💻 🤔 🎨 📖 🚧

Artur Kozak

🤔

Leonid Logvinov

📖 💻

Ivan Pantic

📖

grzpab

💻 📖

Krzysztof Jelski

🤔

Rafał Krupiński

🐛 💻

Piotr Monwid-Olechnowicz

💻 📖 🚧

Earl logo by @sz-piotr

License

dΞth MIT

About

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

https://earljs.dev

License:MIT License


Languages

Language:TypeScript 91.4%Language:JavaScript 5.3%Language:CSS 3.0%Language:Shell 0.4%