@hoangcung1804npm/quas-odit-magni
v1.0.0
Published
![Earl](https://raw.githubusercontent.com/l2beat/@hoangcung1804npm/quas-odit-magni/master/gh-cover.png)
Downloads
2
Maintainers
Keywords
Readme
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 @hoangcung1804npm/quas-odit-magni
Example
import { expect } from '@hoangcung1804npm/quas-odit-magni'
const user = {
name: 'John Doe',
email: '[email protected]',
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.