aboutsummaryrefslogtreecommitdiffstats
path: root/test/utils/chai_setup.ts
blob: c1898810631d1bd8947e14c226245f86c4d0b894 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
import * as chai from 'chai';
import * as dirtyChai from 'dirty-chai';
import ChaiBigNumber = require('chai-bignumber');
import chaiAsPromised = require('chai-as-promised');

export const chaiSetup = {
    configure() {
        chai.config.includeStack = true;
        chai.use(ChaiBigNumber());
        chai.use(dirtyChai);
        chai.use(chaiAsPromised);
    },
};