runtime-node
runtime-node copied to clipboard
Cleanup stack trace on require exceptions
Before:
Error: Cannot find module 't123'
Require stack:
- /Users/timokoessler/Git/firewall-node/sample-apps/express-mysql2/test.js
at Function._resolveFilename (node:internal/modules/cjs/loader:1225:15)
at Function._load (node:internal/modules/cjs/loader:1055:27)
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:220:24)
at Module.<anonymous> (node:internal/modules/cjs/loader:1311:12)
at Module.patchedRequire (/Users/timokoessler/Git/firewall-node/build/agent/hooks/wrapRequire.js:74:43)
at Module.wrapped [as require] (/Users/timokoessler/Git/firewall-node/build/agent/hooks/wrapRequire.js:39:31)
at require (node:internal/modules/helpers:136:16)
at Object.<anonymous> (test.js:1:1)
at Module._compile (node:internal/modules/cjs/loader:1554:14)
After:
Error: Cannot find module 't123'
Require stack:
- /Users/timokoessler/Git/firewall-node/sample-apps/express-mysql2/test.js
at Function._resolveFilename (node:internal/modules/cjs/loader:1225:15)
at Function._load (node:internal/modules/cjs/loader:1055:27)
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:220:24)
at Module.<anonymous> (node:internal/modules/cjs/loader:1311:12)
at require (node:internal/modules/helpers:136:16)
at Object.<anonymous> (test.js:1:1)
at Module._compile (node:internal/modules/cjs/loader:1554:14)
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:
:loudspeaker: Thoughts on this report? Let us know!