From eac4f172fea6d4293e74949bfea4acf12da003ed Mon Sep 17 00:00:00 2001 From: Lawrence Forman Date: Sat, 27 Jul 2019 11:14:33 -0400 Subject: [PATCH] `@0x/contracts-test-utils`: Just do a naked `mocha` import in `mocha_blockchain`. --- contracts/test-utils/src/mocha_blockchain.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/contracts/test-utils/src/mocha_blockchain.ts b/contracts/test-utils/src/mocha_blockchain.ts index 32fe56118d..075371a801 100644 --- a/contracts/test-utils/src/mocha_blockchain.ts +++ b/contracts/test-utils/src/mocha_blockchain.ts @@ -1,7 +1,8 @@ import { BlockchainLifecycle } from '@0x/dev-utils'; import { Web3Wrapper } from '@0x/web3-wrapper'; import * as _ from 'lodash'; -import * as mocha from 'mocha'; +// Import ambient declarations (and clobber Jest). +import 'mocha'; import { web3Wrapper } from './web3_wrapper'; @@ -42,7 +43,7 @@ function defineBlockchainSuite( init(); return describeCall( description, - function(this: mocha.ISuiteCallbackContext): void { + function(this: Mocha.ISuiteCallbackContext): void { callback.call( this, { web3Wrapper, blockchainLifecycle }, @@ -58,7 +59,7 @@ function defineResetsSuite( ): T { return describeCall( description, - function(this: mocha.ISuiteCallbackContext): void { + function(this: Mocha.ISuiteCallbackContext): void { if (blockchainLifecycle !== undefined) { const _blockchainLifecycle = blockchainLifecycle; beforeEach(async () => {