1.2.1 • Published 13 days ago
earl v1.2.1
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.2.0
13 days ago
1.2.1
13 days ago
1.1.1-canary.20240421T104740
14 days ago
1.2.0-canary.20240421T121230
13 days ago
1.2.0-canary.20240421T124702
13 days ago
1.1.0-canary.20230706T121356
10 months ago
1.1.0-canary.20230515T184838
12 months ago
1.1.0
1 year ago
1.0.1
1 year ago
1.0.1-canary.20230412T134153
1 year ago
1.0.1-canary.20230412T135043
1 year ago
1.1.0-canary.20230413T114610
1 year ago
1.1.0-canary.20230413T115206
1 year ago
1.0.0
1 year ago
0.3.0-canary.20230329T072111
1 year ago
1.0.0-canary.20230404T074104
1 year ago
1.0.0-canary.20230331T135758
1 year ago
1.0.0-canary.20230331T150624
1 year ago
1.0.0-canary.20230403T160906
1 year ago
0.3.0-canary.20230330T152038
1 year ago
0.3.0-canary.20230329T070514
1 year ago
0.0.1
12 years ago