Skip to content

Commit

Permalink
chore: use @kakang/unit for test
Browse files Browse the repository at this point in the history
  • Loading branch information
climba03003 committed Apr 12, 2024
1 parent ea083af commit 66a710f
Show file tree
Hide file tree
Showing 7 changed files with 232 additions and 12 deletions.
7 changes: 5 additions & 2 deletions packages/crypto/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
"build": "node ../../scripts/build.mjs --build=\"all\"",
"build:cjs": "node ../../scripts/build.mjs --build='cjs'",
"build:mjs": "node ../../scripts/build.mjs --build='mjs'",
"unit": "node --require ts-node/register ../../scripts/test.mjs",
"unit": "cross-env \"NODE_OPTIONS=--require ts-node/register\" unit",
"test": "npm run lint && npm run unit",
"coverage": "c8 node --require ts-node/register ./test/run.ts",
"coverage": "cross-env \"NODE_OPTIONS=--require ts-node/register\" c8 unit",
"prepublishOnly": "npm run build",
"postpublish": "npm run clean"
},
Expand All @@ -37,9 +37,12 @@
"author": "KaKa <[email protected]>",
"license": "GPL-3.0",
"devDependencies": {
"@kakang/unit": "workspace:^",
"@types/node": "^20.12.7",
"@typescript-eslint/eslint-plugin": "7.6.0",
"@typescript-eslint/parser": "7.6.0",
"c8": "^9.1.0",
"cross-env": "^7.0.3",
"eslint": "^8.57.0",
"eslint-config-standard-with-typescript": "^43.0.1",
"eslint-plugin-import": "^2.29.1",
Expand Down
7 changes: 5 additions & 2 deletions packages/eventemitter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
"build": "node ../../scripts/build.mjs --build=\"all\"",
"build:cjs": "node ../../scripts/build.mjs --build='cjs'",
"build:mjs": "node ../../scripts/build.mjs --build='mjs'",
"unit": "node --require ts-node/register ../../scripts/test.mjs",
"unit": "cross-env \"NODE_OPTIONS=--require ts-node/register\" unit",
"test": "npm run lint && npm run unit",
"coverage": "c8 node --require ts-node/register ./test/run.ts",
"coverage": "cross-env \"NODE_OPTIONS=--require ts-node/register\" c8 unit",
"prepublishOnly": "npm run build",
"postpublish": "npm run clean"
},
Expand All @@ -37,9 +37,12 @@
"author": "KaKa <[email protected]>",
"license": "GPL-3.0",
"devDependencies": {
"@kakang/unit": "workspace:^",
"@types/node": "^20.12.7",
"@typescript-eslint/eslint-plugin": "7.6.0",
"@typescript-eslint/parser": "7.6.0",
"c8": "^9.1.0",
"cross-env": "^7.0.3",
"eslint": "^8.57.0",
"eslint-config-standard-with-typescript": "^43.0.1",
"eslint-plugin-import": "^2.29.1",
Expand Down
7 changes: 5 additions & 2 deletions packages/unit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
"build": "node ../../scripts/build.mjs --build=\"all\"",
"build:cjs": "node ../../scripts/build.mjs --build='cjs'",
"build:mjs": "node ../../scripts/build.mjs --build='mjs'",
"unit": "node --require ts-node/register ../../scripts/test.mjs",
"unit": "cross-env \"NODE_OPTIONS=--require ts-node/register\" unit",
"test": "npm run lint && npm run unit",
"coverage": "c8 node --require ts-node/register ../../scripts/test.mjs",
"coverage": "cross-env \"NODE_OPTIONS=--require ts-node/register\" c8 unit",
"prepublishOnly": "npm run build",
"postpublish": "npm run clean"
},
Expand All @@ -38,9 +38,12 @@
"author": "KaKa <[email protected]>",
"license": "GPL-3.0",
"devDependencies": {
"@kakang/unit": "workspace:^",
"@types/node": "^20.12.7",
"@typescript-eslint/eslint-plugin": "7.6.0",
"@typescript-eslint/parser": "7.6.0",
"c8": "^9.1.0",
"cross-env": "^7.0.3",
"eslint": "^8.57.0",
"eslint-config-standard-with-typescript": "^43.0.1",
"eslint-plugin-import": "^2.29.1",
Expand Down
7 changes: 5 additions & 2 deletions packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
"build": "node ../../scripts/build.mjs --build=\"all\"",
"build:cjs": "node ../../scripts/build.mjs --build='cjs'",
"build:mjs": "node ../../scripts/build.mjs --build='mjs'",
"unit": "node --require ts-node/register ../../scripts/test.mjs",
"unit": "cross-env \"NODE_OPTIONS=--require ts-node/register\" unit",
"test": "npm run lint && npm run unit",
"coverage": "c8 node --require ts-node/register ./test/run.ts",
"coverage": "cross-env \"NODE_OPTIONS=--require ts-node/register\" c8 unit",
"prepublishOnly": "npm run build",
"postpublish": "npm run clean"
},
Expand All @@ -37,9 +37,12 @@
"author": "KaKa <[email protected]>",
"license": "GPL-3.0",
"devDependencies": {
"@kakang/unit": "workspace:^",
"@types/node": "^20.12.7",
"@typescript-eslint/eslint-plugin": "7.6.0",
"@typescript-eslint/parser": "7.6.0",
"c8": "^9.1.0",
"cross-env": "^7.0.3",
"eslint": "^8.57.0",
"eslint-config-standard-with-typescript": "^43.0.1",
"eslint-plugin-import": "^2.29.1",
Expand Down
7 changes: 5 additions & 2 deletions packages/validator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
"build": "node ../../scripts/build.mjs --build=\"all\"",
"build:cjs": "node ../../scripts/build.mjs --build='cjs'",
"build:mjs": "node ../../scripts/build.mjs --build='mjs'",
"unit": "node --require ts-node/register ../../scripts/test.mjs",
"unit": "cross-env \"NODE_OPTIONS=--require ts-node/register\" unit",
"test": "npm run lint && npm run unit",
"coverage": "c8 node --require ts-node/register ./test/run.ts",
"coverage": "cross-env \"NODE_OPTIONS=--require ts-node/register\" c8 unit",
"prepublishOnly": "npm run build",
"postpublish": "npm run clean"
},
Expand All @@ -37,9 +37,12 @@
"author": "KaKa <[email protected]>",
"license": "GPL-3.0",
"devDependencies": {
"@kakang/unit": "workspace:^",
"@types/node": "^20.12.7",
"@typescript-eslint/eslint-plugin": "7.6.0",
"@typescript-eslint/parser": "7.6.0",
"c8": "^9.1.0",
"cross-env": "^7.0.3",
"eslint": "^8.57.0",
"eslint-config-standard-with-typescript": "^43.0.1",
"eslint-plugin-import": "^2.29.1",
Expand Down
7 changes: 5 additions & 2 deletions packages/worker-pool/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
"build": "node ../../scripts/build.mjs --build=\"all\"",
"build:cjs": "node ../../scripts/build.mjs --build='cjs'",
"build:mjs": "node ../../scripts/build.mjs --build='mjs'",
"unit": "node --require ts-node/register ../../scripts/test.mjs",
"unit": "cross-env \"NODE_OPTIONS=--require ts-node/register\" unit",
"test": "npm run lint && npm run unit",
"coverage": "c8 node --require ts-node/register ./test/run.ts",
"coverage": "cross-env \"NODE_OPTIONS=--require ts-node/register\" c8 unit",
"prepublishOnly": "npm run build",
"postpublish": "npm run clean"
},
Expand All @@ -31,9 +31,12 @@
"author": "KaKa <[email protected]>",
"license": "GPL-3.0",
"devDependencies": {
"@kakang/unit": "workspace:^",
"@types/node": "^20.12.7",
"@typescript-eslint/eslint-plugin": "7.6.0",
"@typescript-eslint/parser": "7.6.0",
"c8": "^9.1.0",
"cross-env": "^7.0.3",
"eslint": "^8.57.0",
"eslint-config-standard-with-typescript": "^43.0.1",
"eslint-plugin-import": "^2.29.1",
Expand Down
Loading

0 comments on commit 66a710f

Please sign in to comment.