-
-
Save imdongchen/ab6680508d647e0b2a03bda30fa46748 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// worker.js | |
import { setupWorker } from 'msw' | |
export const worker = setupWorker() | |
// server.js | |
import { setupServer } from 'msw/node' | |
/** | |
* note: this is not actually a server. msw does monkey | |
* patching to node:http and creates a similar API as in browser | |
*/ | |
export const server = setupServer() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment