You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gh repo clone nock/nock
cd nock
bun install
bun run ./node_modules/.bin/mocha --recursive tests
What is the expected behavior?
The nock test suite passes, indicating that nock can be used in project test suites to check if they work in bun or not.
What do you see instead?
incomplete test output
failures almost everywhere
Additional information
It is impossible for modules that have existing test suite for the Node.js runtime to test and assert their module works in Bun if the test suite doesn't even run in Bun. nock is a very common library for mocking http responses for the node:http and node:https modules.
The text was updated successfully, but these errors were encountered:
96 | req.path = options.path
^
TypeError: Attempted to assign to readonly property.
at attachToReq (/Users/Julian/Projects//node_modules/nock/lib/intercepted_request_router.js:96:5)
at new InterceptedRequestRouter (/Users/Julian/Projects//node_modules/nock/lib/intercepted_request_router.js:73:5)
at new OverriddenClientRequest (/Users/Julian/Projects//node_modules/nock/lib/intercept.js:290:25)
at /Users/Julian/Projects//node_modules/nock/lib/intercept.js:426:14
at /Users/Julian/Projects//node_modules/nock/lib/common.js:91:14
at /Users/Julian/Projects//node_modules/@smithy/node-http-handler/dist-cjs/index.js:294:19
at new Promise (:1:21)
at /Users/Julian/Projects//node_modules/@smithy/node-http-handler/dist-cjs/index.js:245:12
What version of Bun is running?
1.0.26+c75e768a6
What platform is your computer?
No response
What steps can reproduce the bug?
What is the expected behavior?
The nock test suite passes, indicating that nock can be used in project test suites to check if they work in bun or not.
What do you see instead?
Additional information
It is impossible for modules that have existing test suite for the Node.js runtime to test and assert their module works in Bun if the test suite doesn't even run in Bun.
nock
is a very common library for mocking http responses for thenode:http
andnode:https
modules.The text was updated successfully, but these errors were encountered: