UNPKG

msw

Version:

Seamless REST/GraphQL API mocking library for browser and Node.js.

12 lines (10 loc) 360 B
import { SetupWorkerInternalContext, StopHandler } from '../glossary' import { printStopMessage } from './utils/printStopMessage' export function createFallbackStop( context: SetupWorkerInternalContext, ): StopHandler { return function stop() { context.fallbackInterceptor?.dispose() printStopMessage({ quiet: context.startOptions?.quiet }) } }