Skip to content

Commit 979e11f

Browse files
committed
test(package.json): update unittest commands to tests (all) and test (single)
Signed-off-by: Bofu Chen (bafu) <bofu@numbersprotocol.io>
1 parent aca3f68 commit 979e11f

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
"dev-global-uninstall": "yarn global remove @numbersprotocol/nit",
2828
"dev-install": "yarn run build && yarn add file:$PWD",
2929
"dev-uninstall": "yarn remove @numbersprotocol/nit && yarn run clean",
30-
"test": "mocha -r ts-node/register tests/**/*.ts",
31-
"test-single": "mocha -r ts-node/register"
30+
"tests": "mocha -r ts-node/register tests/**/*.ts",
31+
"test": "mocha -r ts-node/register"
3232
},
3333
"bin": "bin/nit.js",
3434
"devDependencies": {

tests/testAction.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* manual test: ./node_modules/mocha/bin/mocha -r ts-node/register --timeout 10000 tests/testAction.ts
1+
/* manual test: yarn run test --timeout 10000 tests/testAction.ts
22
*/
33

44
import { expect } from "chai";

tests/testHttp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* manual test: ./node_modules/mocha/bin/mocha -r ts-node/register --timeout 10000 tests/testHttp.ts
1+
/* manual test: yarn run test --timeout 10000 tests/testHttp.ts
22
*/
33

44
import fs = require("fs");

tests/testIpfs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* manual test: ./node_modules/mocha/bin/mocha -r ts-node/register --timeout 10000 tests/testIpfs.ts
1+
/* manual test: yarn run test --timeout 10000 tests/testIpfs.ts
22
*/
33

44
import fs = require("fs");

tests/testNit.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* manual test: yarn run mocha -r ts-node/register tests/testNit.ts
1+
/* manual test: yarn run test tests/testNit.ts
22
*/
33

44
import fs = require("fs");

0 commit comments

Comments
 (0)