main icon indicating copy to clipboard operation
main copied to clipboard

Support JSDOM testenvironment

Open doox911-opensource opened this issue 2 years ago • 1 comments

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:

  • https://www.mocks-server.org/docs/integrations/openapi/#examples-1
  • https://www.mocks-server.org/docs/integrations/javascript/

doox911-opensource avatar Mar 15 '23 21:03 doox911-opensource

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.

javierbrea avatar Apr 07 '23 08:04 javierbrea