6 lines
215 B
JavaScript
6 lines
215 B
JavaScript
|
// src/mocks/browser.js
|
||
|
import { setupWorker } from 'msw';
|
||
|
import { handlers } from './handlers';
|
||
|
// This configures a Service Worker with the given request handlers.
|
||
|
export const worker = setupWorker(...handlers);
|