Skip to content
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

Remix + MSW + Playwright #104

Open
nergro opened this issue Feb 23, 2024 · 1 comment
Open

Remix + MSW + Playwright #104

nergro opened this issue Feb 23, 2024 · 1 comment

Comments

@nergro
Copy link

nergro commented Feb 23, 2024

In the Remix + MSW example there is only one example with handlers that return 200.
But how should MSW be used with handlers that return 400, 500?
It's not clear how to use resetHandlers() or dynamic mock scenarios within a Remix app.

Trying to import ant reset handlers in a test doesn't work, because the server instance is only working within a entry.server.tsx file.

@kettanaito
Copy link
Member

Hi, @nergro. This is a fantastic suggestion. I think where the examples fall flat right now is that they don't mention how to use request handler overrides (.use()). We need to add at least one example of a response override to each example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants