From d4320fec724c5bf34e7dcd006cba8ffe7a3c76d1 Mon Sep 17 00:00:00 2001 From: Fabio Berger Date: Fri, 2 Jun 2017 19:38:28 +0200 Subject: Add includeStack config to chai setup so that we get stackTraces --- test/0x.js_test.ts | 1 + test/exchange_wrapper_test.ts | 1 + test/token_registry_wrapper_test.ts | 1 + test/token_wrapper_test.ts | 1 + 4 files changed, 4 insertions(+) diff --git a/test/0x.js_test.ts b/test/0x.js_test.ts index efc703ea1..9196d3df3 100644 --- a/test/0x.js_test.ts +++ b/test/0x.js_test.ts @@ -10,6 +10,7 @@ import {constants} from './utils/constants'; import {web3Factory} from './utils/web3_factory'; import {Order} from '../src/types'; +chai.config.includeStack = true; chai.use(ChaiBigNumber()); chai.use(dirtyChai); const expect = chai.expect; diff --git a/test/exchange_wrapper_test.ts b/test/exchange_wrapper_test.ts index 6327ef004..607cdf052 100644 --- a/test/exchange_wrapper_test.ts +++ b/test/exchange_wrapper_test.ts @@ -13,6 +13,7 @@ import {ExchangeContractErrs, SignedOrder, Token} from '../src/types'; import {FillScenarios} from './utils/fill_scenarios'; import {TokenUtils} from './utils/token_utils'; +chai.config.includeStack = true; chai.use(dirtyChai); chai.use(ChaiBigNumber()); const expect = chai.expect; diff --git a/test/token_registry_wrapper_test.ts b/test/token_registry_wrapper_test.ts index c91555d8b..195b2f205 100644 --- a/test/token_registry_wrapper_test.ts +++ b/test/token_registry_wrapper_test.ts @@ -10,6 +10,7 @@ import {Token} from '../src/types'; import {SchemaValidator} from '../src/utils/schema_validator'; import {tokenSchema} from '../src/schemas/token_schema'; +chai.config.includeStack = true; const expect = chai.expect; chai.use(chaiAsPromised); const blockchainLifecycle = new BlockchainLifecycle(); diff --git a/test/token_wrapper_test.ts b/test/token_wrapper_test.ts index 4af07a8b2..cfd87da84 100644 --- a/test/token_wrapper_test.ts +++ b/test/token_wrapper_test.ts @@ -8,6 +8,7 @@ import {ZeroEx} from '../src/0x.js'; import {ZeroExError, Token} from '../src/types'; import {BlockchainLifecycle} from './utils/blockchain_lifecycle'; +chai.config.includeStack = true; const expect = chai.expect; const blockchainLifecycle = new BlockchainLifecycle(); -- cgit v1.2.3