diff options
author | Alex Browne <stephenalexbrowne@gmail.com> | 2018-06-22 10:17:33 +0800 |
---|---|---|
committer | Alex Browne <stephenalexbrowne@gmail.com> | 2018-06-22 10:17:33 +0800 |
commit | 4012e31115dd0571d742b42a48094f41fd53a460 (patch) | |
tree | 098fa8e9ec0d22cb477bd982c9bcaab1610434c1 /packages/sra-report | |
parent | 7c0fdc7ecf170e17aa27cb88a2b62a02ea49ca41 (diff) | |
download | dexon-0x-contracts-4012e31115dd0571d742b42a48094f41fd53a460.tar dexon-0x-contracts-4012e31115dd0571d742b42a48094f41fd53a460.tar.gz dexon-0x-contracts-4012e31115dd0571d742b42a48094f41fd53a460.tar.bz2 dexon-0x-contracts-4012e31115dd0571d742b42a48094f41fd53a460.tar.lz dexon-0x-contracts-4012e31115dd0571d742b42a48094f41fd53a460.tar.xz dexon-0x-contracts-4012e31115dd0571d742b42a48094f41fd53a460.tar.zst dexon-0x-contracts-4012e31115dd0571d742b42a48094f41fd53a460.zip |
Use make-promises-safe as a preloader instead of manually importing
Diffstat (limited to 'packages/sra-report')
-rw-r--r-- | packages/sra-report/package.json | 2 | ||||
-rw-r--r-- | packages/sra-report/test/postman_collection_v0_test.ts | 1 | ||||
-rw-r--r-- | packages/sra-report/test/test_runner.ts | 1 |
3 files changed, 1 insertions, 3 deletions
diff --git a/packages/sra-report/package.json b/packages/sra-report/package.json index 379b8cb1e..b3590935f 100644 --- a/packages/sra-report/package.json +++ b/packages/sra-report/package.json @@ -16,7 +16,7 @@ "rebuild_and_test": "run-s clean build test", "copy_test_fixtures": "copyfiles -u 2 './test/fixtures/**/*.json' ./lib/test/fixtures", "copy_test_environments": "copyfiles -u 2 './test/environments/**/*.json' ./lib/test/environments", - "run_mocha": "mocha --require source-map-support/register lib/test/**/*_test.js --exit", + "run_mocha": "mocha --require source-map-support/register --require make-promises-safe lib/test/**/*_test.js --exit", "manual:postpublish": "yarn build; node ./scripts/postpublish.js" }, "bin": { diff --git a/packages/sra-report/test/postman_collection_v0_test.ts b/packages/sra-report/test/postman_collection_v0_test.ts index 5a2fc2520..dfb16b10d 100644 --- a/packages/sra-report/test/postman_collection_v0_test.ts +++ b/packages/sra-report/test/postman_collection_v0_test.ts @@ -1,4 +1,3 @@ -import 'make-promises-safe'; import 'mocha'; import * as nock from 'nock'; diff --git a/packages/sra-report/test/test_runner.ts b/packages/sra-report/test/test_runner.ts index 210eb7932..8094018f2 100644 --- a/packages/sra-report/test/test_runner.ts +++ b/packages/sra-report/test/test_runner.ts @@ -2,7 +2,6 @@ import * as chai from 'chai'; import * as chaiAsPromised from 'chai-as-promised'; import * as dirtyChai from 'dirty-chai'; import * as _ from 'lodash'; -import 'make-promises-safe'; import 'mocha'; import { NewmanRunExecution, |