test: add benchmark

This commit is contained in:
harttle
2019-02-23 21:57:02 +08:00
parent 37d12a14eb
commit 279458c670
11 changed files with 150 additions and 7 deletions
+3
View File
@@ -10,6 +10,7 @@
"unit": "mocha 'test/unit/**/*.ts'",
"e2e": "npm run build && mocha 'test/e2e/**/*.ts'",
"test": "npm run unit && npm run e2e",
"benchmark": "ts-node --require tsconfig-paths/register benchmark",
"coverage-html": "nyc --reporter=html npm run unit",
"coverage-coveralls": "nyc npm run unit && nyc report --reporter=text-lcov | coveralls",
"build": "rollup -c rollup.config.ts && ls -lh dist",
@@ -46,6 +47,7 @@
"@semantic-release/git": "^7.0.8",
"@semantic-release/npm": "^5.1.4",
"@semantic-release/release-notes-generator": "^7.1.4",
"@types/benchmark": "^1.0.31",
"@types/chai": "^4.1.7",
"@types/chai-as-promised": "^7.1.0",
"@types/express": "^4.16.1",
@@ -55,6 +57,7 @@
"@types/sinon-chai": "^3.2.2",
"@types/supertest": "^2.0.7",
"@typescript-eslint/eslint-plugin": "^1.3.0",
"benchmark": "^2.1.4",
"chai": "^4.2.0",
"chai-as-promised": "^7.1.1",
"coveralls": "^3.0.2",