I've built a simple Next.js app and got it deployed with CF Pages. I'm now integrating it with D1 databases and would like to run some tests on CI.
I can't instantiate miniflare, though. It keeps complaining with the following:
TypeError: import_ws3.WebSocketServer is not a constructor
TypeError: import_ws3.WebSocketServer is not a constructor
I theoretically could extract everything that touches D1 or KV to a mockable interface, but I'd like to avoid that and use Miniflare instead. Do you have a guide or hints on how to get it working?
Continue the conversation
Join the Discord to ask follow-up questions and connect with the community
CD
Cloudflare Developers
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news