How do you catch and handle Mocking of SSR requests

Hi fellow ministers,

This is an open question, I am curious to know, as you develop automated integration tests. How do you handle Mocking SSR requests (Next, SvelteKit etc…)

In my project, we are using MSWJS with handlers to mock the API calls, as Playwright doesn’t handle Mocking of SSR request (only CSR as far as my knowledge goes).

But I’m facing real issues when it comes to use the same handler with conditions in the request. Like how to send a param request that is customised and received by MSWJS from Playwright.

So let me know how you work with these types of configuration, what is your strategy, etc…?

1 Like