From 251218af8b3947d0bad531d995dbb4e161058143 Mon Sep 17 00:00:00 2001 From: Alex Browne Date: Wed, 16 May 2018 17:36:37 -0700 Subject: Use make-promises-safe to catch unhandled rejections in tests --- packages/dev-utils/package.json | 3 ++- packages/dev-utils/test/blockchain_lifecycle_test.ts | 1 + packages/dev-utils/test/rpc_test.ts | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) (limited to 'packages/dev-utils') diff --git a/packages/dev-utils/package.json b/packages/dev-utils/package.json index 93edd80ca..49964c82a 100644 --- a/packages/dev-utils/package.json +++ b/packages/dev-utils/package.json @@ -2,7 +2,7 @@ "name": "@0xproject/dev-utils", "version": "0.4.1", "engines": { - "node" : ">=6.12" + "node": ">=6.12" }, "description": "0x dev TS utils", "main": "lib/src/index.js", @@ -35,6 +35,7 @@ "@types/mocha": "^2.2.42", "chai": "^4.0.1", "copyfiles": "^1.2.0", + "make-promises-safe": "^1.1.0", "mocha": "^4.0.1", "npm-run-all": "^4.1.2", "nyc": "^11.0.1", diff --git a/packages/dev-utils/test/blockchain_lifecycle_test.ts b/packages/dev-utils/test/blockchain_lifecycle_test.ts index 2cfad9644..857a6b50e 100644 --- a/packages/dev-utils/test/blockchain_lifecycle_test.ts +++ b/packages/dev-utils/test/blockchain_lifecycle_test.ts @@ -1,6 +1,7 @@ import { BlockParamLiteral } from '@0xproject/types'; import { Web3Wrapper } from '@0xproject/web3-wrapper'; import * as chai from 'chai'; +import 'make-promises-safe'; import 'mocha'; import { BlockchainLifecycle, web3Factory } from '../src'; diff --git a/packages/dev-utils/test/rpc_test.ts b/packages/dev-utils/test/rpc_test.ts index b6998f604..45d1226c2 100644 --- a/packages/dev-utils/test/rpc_test.ts +++ b/packages/dev-utils/test/rpc_test.ts @@ -1,6 +1,7 @@ import { BlockParamLiteral } from '@0xproject/types'; import { Web3Wrapper } from '@0xproject/web3-wrapper'; import * as chai from 'chai'; +import 'make-promises-safe'; import 'mocha'; import { web3Factory } from '../src'; -- cgit v1.2.3