Skip to content

Instantly share code, notes, and snippets.

@marta-pinkowska
Created September 26, 2022 13:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save marta-pinkowska/cdd96667b9f2071c4f18a6545c9537fe to your computer and use it in GitHub Desktop.
Save marta-pinkowska/cdd96667b9f2071c4f18a6545c9537fe to your computer and use it in GitHub Desktop.
// src/mocks/server.js
import { setupServer } from 'msw/node'
import { handlers } from './handlers'
// This configures a request mocking server with the given request handlers.
export const server = setupServer(...handlers)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment