veryfine
TypeScript icon, indicating that this package has built-in type declarations

0.3.0 • Public • Published

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!

Install

With yarn

yarn add veryfine

Or with npm

npm install veryfine

Use

Veryfine was made to be used with Mocha, but can be used in any javascript environment.

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.

TODO list

  • ES2015 Map support
  • ES2015 Set support
  • TypedArray support
  • Buffer support

Package Sidebar

Install

npm i veryfine

Weekly Downloads

0

Version

0.3.0

License

none

Unpacked Size

63 kB

Total Files

56

Last publish

Collaborators

  • sz-piotr