Closed SetupCoding closed 1 year ago
Using a handler like
export const getAccountMSW = () => [ rest.get('http://localhost:8080/account', (_req, res, ctx) => { return res(ctx.delay(1000), ctx.status(200, 'Mocked status'), ctx.json(getAccountMock())); }), ];
in msw results in times around one second:
When using playwright-msw with the same handler the delay seems to be ignored (1-6ms RTT)
The fix works. Would love to see it in the next release :D
Using a handler like
in msw results in times around one second:
When using playwright-msw with the same handler the delay seems to be ignored (1-6ms RTT)