2021-02-12 19:00:26 +01:00
|
|
|
// src/mocks/browser.js
|
2022-05-03 20:50:57 +02:00
|
|
|
import { setupWorker } from 'msw'
|
|
|
|
import { handlers } from './handlers'
|
2021-02-12 19:00:26 +01:00
|
|
|
// This configures a Service Worker with the given request handlers.
|
2022-05-03 20:50:57 +02:00
|
|
|
export const worker = setupWorker(...handlers)
|