aboutsummaryrefslogtreecommitdiffstats
path: root/packages/0x.js/test/global_hooks.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/0x.js/test/global_hooks.ts')
-rw-r--r--packages/0x.js/test/global_hooks.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/packages/0x.js/test/global_hooks.ts b/packages/0x.js/test/global_hooks.ts
new file mode 100644
index 000000000..d5062a3a1
--- /dev/null
+++ b/packages/0x.js/test/global_hooks.ts
@@ -0,0 +1,10 @@
+// HACK: This dependency is optional since it is only available when run from within
+// the monorepo. tslint doesn't handle optional dependencies
+// tslint:disable-next-line:no-implicit-dependencies
+import { runMigrationsAsync } from '@0xproject/migrations';
+
+import { deployer } from './utils/deployer';
+
+before('migrate contracts', async () => {
+ await runMigrationsAsync(deployer);
+});