diff options
Diffstat (limited to 'packages/sra-report/package.json')
-rw-r--r-- | packages/sra-report/package.json | 19 |
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" |