Test: drop bun:test, replace w/ mocha and chai

This commit is contained in:
SukkaW
2024-07-25 10:34:03 +08:00
parent 5e94d0937e
commit a7a05e9901
7 changed files with 509 additions and 141 deletions

View File

@@ -14,7 +14,8 @@
"build": "pnpm run node ./Build/index.ts",
"build-profile": "pnpm run dexnode -r @swc-node/register ./Build/index.ts",
"build-webstream": "ENABLE_EXPERIMENTAL_WEBSTREAMS=true pnpm run node ./Build/index.ts",
"lint": "eslint --format=sukka ."
"lint": "eslint --format=sukka .",
"test": "SWCRC=true mocha --require @swc-node/register --watch-extensions ts,tsx"
},
"author": "",
"license": "ISC",
@@ -45,12 +46,16 @@
"@swc/core": "^1.7.0",
"@types/async-retry": "^1.4.8",
"@types/better-sqlite3": "^7.6.11",
"@types/chai": "^4.3.16",
"@types/mocha": "^10.0.7",
"@types/punycode": "^2.1.4",
"@types/tar-stream": "^3.1.3",
"chai": "4",
"eslint": "^9.7.0",
"eslint-config-sukka": "^6.1.6",
"eslint-formatter-sukka": "^6.1.6",
"mitata": "^0.1.11",
"mocha": "^10.7.0",
"typescript": "^5.5.3"
},
"packageManager": "pnpm@9.6.0+sha512.38dc6fba8dba35b39340b9700112c2fe1e12f10b17134715a4aa98ccf7bb035e76fd981cf0bb384dfa98f8d6af5481c2bef2f4266a24bfa20c34eb7147ce0b5e",