aboutsummaryrefslogtreecommitdiffstats
path: root/packages/abi-gen/package.json
diff options
context:
space:
mode:
authorF. Eugene Aumson <gene@aumson.org>2018-07-02 05:54:48 +0800
committerF. Eugene Aumson <gene@aumson.org>2018-07-09 22:56:18 +0800
commit9f08916cf18ad3e2686811933116122eea0890b9 (patch)
tree2bf83026f22043ae059dd9c2fdbbb8eea73c7b60 /packages/abi-gen/package.json
parenta0e3676e3aef4692732375c02c274223b3349f63 (diff)
downloaddexon-sol-tools-9f08916cf18ad3e2686811933116122eea0890b9.tar
dexon-sol-tools-9f08916cf18ad3e2686811933116122eea0890b9.tar.gz
dexon-sol-tools-9f08916cf18ad3e2686811933116122eea0890b9.tar.bz2
dexon-sol-tools-9f08916cf18ad3e2686811933116122eea0890b9.tar.lz
dexon-sol-tools-9f08916cf18ad3e2686811933116122eea0890b9.tar.xz
dexon-sol-tools-9f08916cf18ad3e2686811933116122eea0890b9.tar.zst
dexon-sol-tools-9f08916cf18ad3e2686811933116122eea0890b9.zip
add tests of abi-gen
Diffstat (limited to 'packages/abi-gen/package.json')
-rw-r--r--packages/abi-gen/package.json12
1 files changed, 12 insertions, 0 deletions
diff --git a/packages/abi-gen/package.json b/packages/abi-gen/package.json
index fd02634f9..b85b20d19 100644
--- a/packages/abi-gen/package.json
+++ b/packages/abi-gen/package.json
@@ -12,6 +12,11 @@
"lint": "tslint --project .",
"clean": "shx rm -rf lib scripts",
"build": "tsc && copyfiles -u 2 './lib/monorepo_scripts/**/*' ./scripts",
+ "test": "yarn run_mocha",
+ "run_mocha": "mocha --require source-map-support/register --require make-promises-safe lib/test/**/*_test.js --bail --exit",
+ "test:circleci": "yarn test:coverage",
+ "test:coverage": "nyc npm run test --all && yarn coverage:report:lcov",
+ "coverage:report:lcov": "nyc report --reporter=text-lcov > coverage/lcov.info",
"manual:postpublish": "yarn build; node ./scripts/postpublish.js"
},
"bin": {
@@ -35,6 +40,8 @@
"handlebars": "^4.0.11",
"lodash": "^4.17.4",
"mkdirp": "^0.5.1",
+ "sleep": "^5.1.1",
+ "tmp": "^0.0.33",
"to-snake-case": "^1.0.0",
"yargs": "^10.0.3"
},
@@ -45,9 +52,14 @@
"@types/handlebars": "^4.0.36",
"@types/mkdirp": "^0.5.1",
"@types/node": "^8.0.53",
+ "@types/sleep": "^0.0.7",
+ "@types/tmp": "^0.0.33",
"@types/yargs": "^10.0.0",
+ "chai": "^4.1.2",
"copyfiles": "^1.2.0",
+ "dirty-chai": "^2.0.1",
"make-promises-safe": "^1.1.0",
+ "mocha": "^5.2.0",
"npm-run-all": "^4.1.2",
"shx": "^0.2.2",
"tslint": "5.8.0",