Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sz-piotr/veryfine
A delightful expect-style assertion and mocking library
https://github.com/sz-piotr/veryfine
javascript mocha mocking testing typescript
Last synced: about 1 month ago
JSON representation
A delightful expect-style assertion and mocking library
- Host: GitHub
- URL: https://github.com/sz-piotr/veryfine
- Owner: sz-piotr
- License: mit
- Created: 2018-12-21T11:16:35.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-01-26T20:33:35.000Z (almost 6 years ago)
- Last Synced: 2024-10-01T06:30:58.694Z (about 2 months ago)
- Topics: javascript, mocha, mocking, testing, typescript
- Language: TypeScript
- Homepage: https://veryfine.netlify.com/
- Size: 209 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Veryfine
[![](https://img.shields.io/npm/v/veryfine.svg)](https://www.npmjs.com/package/veryfine)
[![](https://travis-ci.com/sz-piotr/veryfine.svg?branch=master)](https://travis-ci.com/sz-piotr/veryfine)Veryfine is a delightful expect-style assertion and mocking library for JavaScript.
It is intended for use with Mocha. Main features include:
- 🕵️ intelligent deep equality checking
- ⏳ first class promise support
- 🐵 built-in mock functions
- 🔧 hassle-free custom matchers[Check out the documentation](https://veryfine.netlify.com/docs)!
## Install
With yarn
```
yarn add veryfine
```Or with npm
```
npm install veryfine
```## Use
Veryfine was made to be used with [Mocha](https://mochajs.org/), but can be
used in any javascript environment.```javascript
import { expect } from 'veryfine'describe('how awesome veryfine is', () => {
it('is so amazing', () => {
const you = { satisfaction: Infinity }
expect(you.satisfaction).toBeGreaterThan(9000)
});
});
```## Learn more
Read the excellent documentation at [the Veryfine website](https://veryfine.netlify.com/docs).
## TODO list
- [ ] ES2015 Map support
- [ ] ES2015 Set support
- [ ] TypedArray support
- [ ] Buffer support