JSPM

@ethereum-waffle/chai

4.0.10
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 38822
  • Score
    100M100P100Q163556F
  • License MIT

A sweet set of chai matchers for your blockchain testing needs.

Package Exports

  • @ethereum-waffle/chai
  • @ethereum-waffle/chai/dist/cjs/src/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@ethereum-waffle/chai) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

CI

Ethereum Waffle

@ethereum-waffle/chai

A sweet set of chai matchers for your blockchain testing needs.

Installation

In the current version of waffle (v2.x.x) you will install this package as a dependency of the main waffle package - ethereum-waffle.

yarn add --dev ethereum-waffle
npm install --save-dev ethereum-waffle

If you want to use this package directly please install it via:

yarn add --dev @ethereum-waffle/chai
npm install --save-dev @ethereum-waffle/chai

Usage

import { expect, use } from "chai";
import { waffleChai } from "@ethereum-waffle/chai";
import { bigNumberify } from "ethers/utils";

use(chaiAsPromised);

expect(bigNumberify("6")).to.be.gt(0);

Feature overview

NOTE: You do not need to use this package directly. You can install it through the main package (ethereum-waffle) and use it instead.

Read more in the documentation.