Skip to main content
Version: Next

setupRequestMockHandlers()

Home > @backstage/test-utils > setupRequestMockHandlers

Warning: This API is now obsolete.

Use registerMswTestHooks from @backstage/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