1.3.0 • Published 1 year ago
earl v1.3.0
Features
- 💪 Use advanced assertions that are able to match whole ranges of values
- 🤖 Written in TypeScript with type-safety in mind
- 🎭 Type-safe, fully integrated mocks included
- ☕ Finally a modern assertion library for Mocha
- 📸 Snapshots can be easily created and updated with Earl
- 🔌 Tweak to your needs with plugins
Installation
npm install --save-dev earl
Example
import { expect } from 'earl'
const user = {
name: 'John Doe',
email: 'john@doe.com',
notificationCount: 5,
}
// This code fails to compile, and TypeScript provides this useful
// error message:
// Property 'notificationCount' is missing in type
// '{ name: string; email: any; }' but required in type 'User'.
expect(user).toEqual({
name: 'John Doe',
email: expect.a(String),
})
Docs
License
Published under the MIT License. Copyright © 2023 L2BEAT.
1.3.0
1 year ago
1.2.0
1 year ago
1.2.1
1 year ago
1.1.1-canary.20240421T104740
1 year ago
1.2.0-canary.20240421T121230
1 year ago
1.2.0-canary.20240421T124702
1 year ago
1.1.0-canary.20230706T121356
2 years ago
1.1.0-canary.20230515T184838
2 years ago
1.1.0
2 years ago
1.0.1
2 years ago
1.0.1-canary.20230412T134153
2 years ago
1.0.1-canary.20230412T135043
2 years ago
1.1.0-canary.20230413T114610
2 years ago
1.1.0-canary.20230413T115206
2 years ago
1.0.0
2 years ago
0.3.0-canary.20230329T072111
2 years ago
1.0.0-canary.20230404T074104
2 years ago
1.0.0-canary.20230331T135758
2 years ago
1.0.0-canary.20230331T150624
2 years ago
1.0.0-canary.20230403T160906
2 years ago
0.3.0-canary.20230330T152038
2 years ago
0.3.0-canary.20230329T070514
2 years ago
0.0.1
14 years ago