Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/visini/mqtt-playwright-example


https://github.com/visini/mqtt-playwright-example

mocking mqtt mqtt-js playwright system-testing

Last synced: 17 days ago
JSON representation

Awesome Lists containing this project

README

        

# Mocking MQTT with Playwright

This is a simple example of how to mock MQTT messages using Playwright. See the full blog post: .

## How to run

Install dependencies:

```bash
npm install
```

Run Mosquitto MQTT broker:

```bash
docker compose up
```

Run the demo page:

```bash
npm run dev
```

Run the tests (MQTT is mocked, so no need to run the broker):

```bash
npm test
```