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

Does miragejs support concurrent runs in Node.JS? #1068

Open
BrunoQuaresma opened this issue Nov 18, 2022 · 3 comments
Open

Does miragejs support concurrent runs in Node.JS? #1068

BrunoQuaresma opened this issue Nov 18, 2022 · 3 comments

Comments

@BrunoQuaresma
Copy link

Hi folks, does miragejs support concurrent runs in Node.JS? Asking because we are facing issues with msw because of that.

@IanVS
Copy link
Collaborator

IanVS commented Nov 18, 2022

Mirage is intended to run in the browser, so no unfortunately not. There's a way to swap out some of the internals to use msw, but it sounds like that wouldn't help you either.

@cah-brian-gantzler
Copy link
Collaborator

Mirage by default uses pretender which only runs in the browser. As Ian mentioned, there is a way to use MSW which should run in node. I am actually having an issue with some of the tests in that repo because they are running in node and not in the browser :).

Would be curious what the issue is you are having with MSW and node.

@RichardJECooke
Copy link

Please state explicitly on your homepage or at the beginning of you getting started guide that this library doesn't work with Node. It saves everyone having to go hunt through your github issues like this just to find out

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

4 participants