Skip to content

Commit 38aed91

Browse files
test: stability
1 parent 8e273d1 commit 38aed91

2 files changed

Lines changed: 9 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": "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",

test/middleware.test.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,14 @@ async function startServer(name, app) {
6363
});
6464
}
6565

66+
process.on('unhandledRejection', (reason) => {
67+
console.error('🛑 Unhandled Rejection:', reason instanceof Error ? reason.stack : reason);
68+
});
69+
70+
process.on('uncaughtException', (err) => {
71+
console.error('🛑 Uncaught Exception:', err.stack);
72+
});
73+
6674
async function frameworkFactory(
6775
name,
6876
framework,

0 commit comments

Comments
 (0)