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
{{ message }}
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.
cy.intercept accepts as url type RouteMatcher
Maybe you could do it as well because id like to better not rely on the example id for path params
better have a regex. In my case it's uuid for example
Additional to this:
cy.mockWithOpenAPI({ url: '/accounts/d3a98f9b-03c6-4bca-89e5-aac492a98f71/messages' }).as('messages');
this:
cy.mockWithOpenAPI({ url: new RegExp( /accounts/${UUID_REGEX}/messages).as('messages');
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
cy.intercept accepts as url type RouteMatcher
Maybe you could do it as well because id like to better not rely on the example id for path params
better have a regex. In my case it's uuid for example
Additional to this:
cy.mockWithOpenAPI({ url: '/accounts/d3a98f9b-03c6-4bca-89e5-aac492a98f71/messages' }).as('messages');
this:
cy.mockWithOpenAPI({ url: new RegExp(
/accounts/${UUID_REGEX}/messages
).as('messages');The text was updated successfully, but these errors were encountered: