Mockoon is a tool that simplifies scripting, mock network events, and supports exporting to Puppeteer and Playwright.
To use Mockoon, download and install the software, create a new mock API, define routes, and start the server.