registerMswTestHooks()
Home > @backstage/test-utils
> registerMswTestHooks
Sets up handlers for request mocking
Signature:
function registerMswTestHooks(worker: {
listen: (t: any) => void;
close: () => void;
resetHandlers: () => void;
}): void;
Parameters
Parameter |
Type |
Description |
---|---|---|
worker |
{ listen: (t: any) => void; close: () => void; resetHandlers: () => void; } |
service worker |
void