aboutsummaryrefslogtreecommitdiffstats
path: root/packages/sra-report
diff options
context:
space:
mode:
Diffstat (limited to 'packages/sra-report')
-rw-r--r--packages/sra-report/package.json7
-rw-r--r--packages/sra-report/src/index.ts4
-rw-r--r--packages/sra-report/src/postman_environment_factory.ts1
-rw-r--r--packages/sra-report/test/test_runner.ts1
4 files changed, 5 insertions, 8 deletions
diff --git a/packages/sra-report/package.json b/packages/sra-report/package.json
index 8903f5c81..2e120d661 100644
--- a/packages/sra-report/package.json
+++ b/packages/sra-report/package.json
@@ -8,14 +8,15 @@
"main": "lib/src/index.js",
"types": "lib/src/index.d.ts",
"scripts": {
- "watch": "tsc -w",
+ "watch_without_deps": "tsc -w",
"clean": "shx rm -rf lib scripts",
"build": "tsc && copyfiles -u 3 './lib/src/monorepo_scripts/**/*' ./scripts",
"lint": "tslint --project .",
- "test": "run-s clean build copy_test_environments copy_test_fixtures run_mocha",
+ "test": "run-s copy_test_environments copy_test_fixtures run_mocha",
+ "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 lib/test/**/*_test.js --exit",
+ "run_mocha": "mocha --require source-map-support/register lib/test/**/*_test.js --exit",
"manual:postpublish": "yarn build; node ./scripts/postpublish.js"
},
"bin": {
diff --git a/packages/sra-report/src/index.ts b/packages/sra-report/src/index.ts
index 3b72ad44e..faa904441 100644
--- a/packages/sra-report/src/index.ts
+++ b/packages/sra-report/src/index.ts
@@ -1,10 +1,8 @@
#!/usr/bin/env node
import { assert } from '@0xproject/assert';
-import { Schema, schemas } from '@0xproject/json-schemas';
-import { logUtils, promisify } from '@0xproject/utils';
+import { logUtils } from '@0xproject/utils';
import chalk from 'chalk';
import * as _ from 'lodash';
-import * as newman from 'newman';
import * as yargs from 'yargs';
import * as sraReportCollectionJSON from '../../postman_collections/sra_report.postman_collection.json';
diff --git a/packages/sra-report/src/postman_environment_factory.ts b/packages/sra-report/src/postman_environment_factory.ts
index f8fe02d72..3dcb97829 100644
--- a/packages/sra-report/src/postman_environment_factory.ts
+++ b/packages/sra-report/src/postman_environment_factory.ts
@@ -1,7 +1,6 @@
import { HttpClient } from '@0xproject/connect';
import { Schema, schemas as schemasByName } from '@0xproject/json-schemas';
import { getOrderHashHex } from '@0xproject/order-utils';
-import { SignedOrder } from '@0xproject/types';
import { logUtils } from '@0xproject/utils';
import chalk from 'chalk';
import * as _ from 'lodash';
diff --git a/packages/sra-report/test/test_runner.ts b/packages/sra-report/test/test_runner.ts
index fe238e98a..210eb7932 100644
--- a/packages/sra-report/test/test_runner.ts
+++ b/packages/sra-report/test/test_runner.ts
@@ -112,7 +112,6 @@ export const testRunner = {
nockInterceptor.reply(SUCCESS_STATUS, correctJson);
const summary = await utils.newmanRunAsync(newmanRunOptions);
const error = findAssertionErrorIfExists(summary, postmanCollectionRequestName, SCHEMA_ASSERTION_NAME);
- const errorMessage = _.get(error, 'message');
expect(error).to.be.undefined();
});
});