Skip to content

Commit 76ec3bb

Browse files
test: stability
1 parent 8e273d1 commit 76ec3bb

2 files changed

Lines changed: 16 additions & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"build:types": "tsc --declaration --emitDeclarationOnly --outDir types && prettier \"types/**/*.ts\" --write",
3939
"build:code": "babel src -d dist --copy-files",
4040
"build": "npm-run-all -p \"build:**\"",
41-
"test:only": "node --trace-deprecation node_modules/.bin/jest",
41+
"test:only": "node ./scripts/patch.js && jest",
4242
"test:watch": "npm run test:only -- --watch",
4343
"test:coverage": "npm run test:only -- --collectCoverageFrom=\"src/**/*.js\" --coverage",
4444
"pretest": "npm run lint",

scripts/patch.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
const fs = require("node:fs");
2+
3+
const path = "node_modules/@hono/node-server/dist/index.js";
4+
5+
if (fs.existsSync(path)) {
6+
const content = fs.readFileSync(path, "utf8");
7+
8+
fs.writeFileSync(
9+
path,
10+
content.replace(
11+
/console\.error\(e\);/,
12+
"console.error(e, e.stack, currentReadPromise);",
13+
),
14+
);
15+
}

0 commit comments

Comments
 (0)