-
-
Notifications
You must be signed in to change notification settings - Fork 736
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
i.match is not a function
when {allowUnmocked: true}
in 14.0.0-beta.7
#2758
Comments
We published a new version. Can you please give it a try? |
The issue seems to be resolved, thanks |
Unfortunately opening this again since there seems to be another issue. This time it seems to be related to
When running the tests we are getting The tests that are failing are actually GET requests with empty bodies and no mocking but somehow the requests get messed up. LMK if you need more instructions for reproduction |
@kuzdogan can you please open a new issue instead? We have a test a simple case: it('input is string', async () => {
const scope = nock('http:https://example.test').get('/').reply()
const { status } = await fetch('http:https://example.test/')
expect(status).to.equal(200)
scope.done()
}) |
I'm closing this one. Feel free to open another one with the new issue with a reproduce. |
Please avoid duplicates
Reproducible test case
ethereum/sourcify#1465
Nock Version
14.0.0-beta.7
Node Version
20.12.2
TypeScript Version
5.5.3
What happened?
We are using native fetch with Node v20. When mocking a single path but allowing other requests I receive the error:
The error can be reproduced at the PR/branch above. Check out the branch, run
npm i
and runnpx mocha services/server/test/unit/VerificationService.spec.ts
Would you be interested in contributing a fix?
The text was updated successfully, but these errors were encountered: