Skip to content
Discussion options

You must be logged in to vote

The way to do this is to define a more specific cy.intercept() override that continues the response without stubbing it. Since non-middleware cy.intercept()s are matched from newest to oldest, this will work:

cy.intercept('/foo', (req) => {
	// override the previously-declared stub to just continue the request instead of stubbing
	req.continue()
})

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@wereHamster
Comment options

@TrevinAvery
Comment options

@SalahAdDin
Comment options

Answer selected by flotwig
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants