utils: add test for subtask matcher

This commit is contained in:
undefined committed 2023-12-13 07:51:03 +08:00
1 parent 76e2dcc21b
commit b83b2e792e
3 files changed
+67 -2

No files matched your search

+3 -1
View File
@@ -17,7 +17,7 @@
"build:ui:dev:https": "node packages/ui-default/build --gulp && node --trace-deprecation packages/ui-default/build --dev --https",
"build:ui:production": "cross-env NODE_OPTIONS=--max_old_space_size=8192 node packages/ui-default/build --gulp && node packages/ui-default/build --production",
"build:ui:production:webpack": "cross-env NODE_OPTIONS=--max_old_space_size=8192 node packages/ui-default/build --production",
"test": "node test/entry.js",
"test": "node -r @hydrooj/utils/lib/register packages/utils/tests/subtask.spec.ts && node test/entry.js",
"benchmark": "cross-env BENCHMARK=true node test/entry.js",
"lint": "eslint packages plugins modules --ext .ts,.tsx,.jsx --fix",
"lint:ci": "eslint packages plugins modules --ext .ts,.tsx,.jsx --max-warnings=0",
@@ -33,12 +33,14 @@
"devDependencies": {
"@simplewebauthn/typescript-types": "7.4.0",
"@types/autocannon": "^7.12.5",
"@types/chai": "^4",
"@types/cross-spawn": "^6.0.6",
"@types/node": "^20.10.0",
"@types/semver": "^7.5.6",
"@types/supertest": "^2.0.16",
"autocannon": "^7.14.0",
"cac": "^6.7.14",
"chai": "^4.3.10",
"chokidar": "^3.5.3",
"cross-env": "^7.0.3",
"cross-spawn": "^7.0.3",