Mocking MQTT.js in system tests via Playwright #1962
visini
started this conversation in
Show and tell
Replies: 1 comment 1 reply
-
Hi @visini and thanks for your article. It could be my opinion but I don't think having a broker adds so much overhead at all, I suggest you to give a look for example to aedes-cli package that's a package I used on mqttjs for browser e2e tests :) See: https://github.com/mqttjs/MQTT.js/blob/main/web-test-runner.config.mjs |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've written a blog post to demonstrate how to mock MQTT.js via Playwright in system tests.
https://camillovisini.com/coding/mocking-mqtt-with-playwright
Hope it's helpful for somebody
See also the repo with the full code: https://github.com/visini/mqtt-playwright-example
Beta Was this translation helpful? Give feedback.
All reactions