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