aboutsummaryrefslogtreecommitdiffstats
path: root/packages/sra-report/package.json
diff options
context:
space:
mode:
authorBrandon Millman <brandon.millman@gmail.com>2018-03-13 02:00:08 +0800
committerBrandon Millman <brandon.millman@gmail.com>2018-03-14 06:54:33 +0800
commitb08374f0ba2d1c163f1c8d75a06f642101e1e15d (patch)
treea09e61a6131cc0dbd35fc963f09b1a774ca61959 /packages/sra-report/package.json
parentdf9e7385ad86a16db195fa75db18dd6ee21eedf1 (diff)
downloaddexon-sol-tools-b08374f0ba2d1c163f1c8d75a06f642101e1e15d.tar
dexon-sol-tools-b08374f0ba2d1c163f1c8d75a06f642101e1e15d.tar.gz
dexon-sol-tools-b08374f0ba2d1c163f1c8d75a06f642101e1e15d.tar.bz2
dexon-sol-tools-b08374f0ba2d1c163f1c8d75a06f642101e1e15d.tar.lz
dexon-sol-tools-b08374f0ba2d1c163f1c8d75a06f642101e1e15d.tar.xz
dexon-sol-tools-b08374f0ba2d1c163f1c8d75a06f642101e1e15d.tar.zst
dexon-sol-tools-b08374f0ba2d1c163f1c8d75a06f642101e1e15d.zip
Add scaffolding for sra-report collection unit tests
Diffstat (limited to 'packages/sra-report/package.json')
-rw-r--r--packages/sra-report/package.json19
1 files changed, 17 insertions, 2 deletions
diff --git a/packages/sra-report/package.json b/packages/sra-report/package.json
index abe305f52..a4a12b875 100644
--- a/packages/sra-report/package.json
+++ b/packages/sra-report/package.json
@@ -6,9 +6,13 @@
"types": "lib/index.d.ts",
"scripts": {
"build:watch": "tsc -w",
- "lint": "tslint --project . 'src/**/*.ts'",
+ "lint": "tslint --project . 'src/**/*.ts' 'test/**/*.ts'",
"clean": "shx rm -rf lib",
- "build": "tsc"
+ "build": "tsc",
+ "test": "run-s clean build copy_test_environments copy_test_fixtures run_mocha",
+ "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"
},
"bin": {
"sra-report": "lib/index.js"
@@ -36,8 +40,19 @@
"devDependencies": {
"@0xproject/tslint-config": "^0.4.10",
"@types/lodash": "^4.14.86",
+ "@types/mocha": "^2.2.48",
+ "@types/nock": "^9.1.2",
"@types/node": "^8.0.53",
"@types/yargs": "^10.0.0",
+ "chai": "^4.0.1",
+ "chai-as-promised": "^7.1.0",
+ "chai-as-promised-typescript-typings": "^0.0.10",
+ "chai-typescript-typings": "^0.0.4",
+ "copyfiles": "^2.0.0",
+ "dirty-chai": "^2.0.1",
+ "mocha": "^4.0.1",
+ "nock": "^9.2.3",
+ "npm-run-all": "^4.1.2",
"shx": "^0.2.2",
"tslint": "5.8.0",
"typescript": "2.7.1"