mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
workspace: use node:test to replace mocha
This commit is contained in:
1 parent
188a8c6ed0
commit
e5de4f101b
6 files changed
+27
-20
No files matched your search
+2
-4
@@ -15,8 +15,8 @@
|
||||
"build:ui:dev": "node packages/ui-default/build --gulp && node --trace-deprecation packages/ui-default/build --dev",
|
||||
"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": "mocha",
|
||||
"benchmark": "cross-env BENCHMARK=true mocha",
|
||||
"test": "node test/entry.js",
|
||||
"benchmark": "cross-env BENCHMARK=true node test/entry.js",
|
||||
"lint": "eslint packages plugins --ext ts --fix",
|
||||
"lint:ci": "eslint packages plugins --ext ts",
|
||||
"lint:ui": "yarn workspace @hydrooj/ui-default lint --ext .js,.ts,.jsx,.tsx . --fix",
|
||||
@@ -30,7 +30,6 @@
|
||||
"devDependencies": {
|
||||
"@types/autocannon": "^7.9.0",
|
||||
"@types/cross-spawn": "^6.0.2",
|
||||
"@types/mocha": "^10.0.1",
|
||||
"@types/node": "^18.11.9",
|
||||
"@types/semver": "^7.3.13",
|
||||
"@types/supertest": "^2.0.12",
|
||||
@@ -60,7 +59,6 @@
|
||||
"globby": "13.1.3",
|
||||
"latest-version": "7.0.0",
|
||||
"mini-css-extract-plugin": "^2.7.2",
|
||||
"mocha": "^10.2.0",
|
||||
"monaco-editor-webpack-plugin": "^7.0.1",
|
||||
"mongodb": "^3.7.3",
|
||||
"mongodb-memory-server": "^8.10.2",
|
||||
|
||||
Reference in new issue
Block a user