https://github.com/visini/mqtt-playwright-example
  
  
     
    https://github.com/visini/mqtt-playwright-example
  
mocking mqtt mqtt-js playwright system-testing
        Last synced: 4 months ago 
        JSON representation
    
- Host: GitHub
- URL: https://github.com/visini/mqtt-playwright-example
- Owner: visini
- Created: 2025-01-13T17:13:41.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-01-19T12:49:43.000Z (9 months ago)
- Last Synced: 2025-01-19T13:59:25.017Z (9 months ago)
- Topics: mocking, mqtt, mqtt-js, playwright, system-testing
- Language: TypeScript
- Homepage: https://camillovisini.com/coding/mocking-mqtt-with-playwright
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
- 
            Metadata Files:
            - Readme: README.md
 
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
```