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
When using fetchMock to intercept requests, there's a bug in handling URL query parameters with repeated keys. While single key-value pairs work correctly, the mock fails to properly match URLs that contain multiple values for the same parameter key.
Please provide any relevant error logs
No response
The text was updated successfully, but these errors were encountered:
Maybe worth mentioning here: The RFCs of URL and HTTP do not directly prohibit the query params to have duplicated keys.
Personally, I believe it is better to use different key names or, if really needed, use comma as a separator for values in the same key. Unfortunately, our team needs this support so we can integrate into a system in which we don't control their URL signature.
Which Cloudflare product(s) does this pertain to?
Workers Vitest Integration
What versions are you using?
3.99.0 [wrangler], 0.5.40 [vitest-pool-workers], v20.18.1 [node.js]
What operating system and version are you using?
Mac Sequoia 15.2
Please provide a link to a minimal reproduction
https://github.com/romeupalos/vitest-poll-workers-bug
Describe the Bug
When using
fetchMock
to intercept requests, there's a bug in handling URL query parameters with repeated keys. While single key-value pairs work correctly, the mock fails to properly match URLs that contain multiple values for the same parameter key.Please provide any relevant error logs
No response
The text was updated successfully, but these errors were encountered: