aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts/test/ts/utils/chai_setup.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/contracts/test/ts/utils/chai_setup.ts')
-rw-r--r--packages/contracts/test/ts/utils/chai_setup.ts13
1 files changed, 13 insertions, 0 deletions
diff --git a/packages/contracts/test/ts/utils/chai_setup.ts b/packages/contracts/test/ts/utils/chai_setup.ts
new file mode 100644
index 000000000..078edd309
--- /dev/null
+++ b/packages/contracts/test/ts/utils/chai_setup.ts
@@ -0,0 +1,13 @@
+import * as chai from 'chai';
+import chaiAsPromised = require('chai-as-promised');
+import ChaiBigNumber = require('chai-bignumber');
+import * as dirtyChai from 'dirty-chai';
+
+export const chaiSetup = {
+ configure() {
+ chai.config.includeStack = true;
+ chai.use(ChaiBigNumber());
+ chai.use(dirtyChai);
+ chai.use(chaiAsPromised);
+ },
+};