Skip to main content

setupRequestMockHandlers()

Home > @backstage/frontend-test-utils > setupRequestMockHandlers

Warning: This API is now obsolete.

Use registerMswTestHooks from @backstage/frontend-test-utils instead.

Signature:

function setupRequestMockHandlers(worker: {
listen: (t: any) => void;
close: () => void;
resetHandlers: () => void;
}): void;

Parameters

Parameter

Type

Description

worker

{ listen: (t: any) => void; close: () => void; resetHandlers: () => void; }

**Returns:**

void