FRAMEWORK » PLAYWRIGHT
Mock
Examples
JSON response returning an empty array:
js
await page.route('**/api/users', async (route) => {
await route.fulfill({ json: [] });
});