mocks-server / main

Node.js mock server running live, interactive mocks in place of real APIs
https://www.mocks-server.org
Apache License 2.0
281 stars 14 forks source link

Support JSDOM testenvironment #461

Open doox911-opensource opened 1 year ago

doox911-opensource commented 1 year ago

I couldn't start your server in the JS DOM environment because I get the error: ReferenceError: setImmediate is not defined.

Is there a way to run a server in a JSDOM environment?

I tried to work with documentation:

javierbrea commented 1 year ago

Hi @doox911-opensource ,

Could you please provide more details about your specific setup? I mean, it would be very useful to know your dependencies, Node.js version, operating system, Jest setup (if you are using this library, of course), and any other valuable information in order to be able to reproduce the issue. If possible, a public repository containing all the needed setup for getting the error would be great!

Thanks in advance.