We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9bf53d3 commit b7190e1Copy full SHA for b7190e1
tests/mocks/index.ts
@@ -1,20 +1,9 @@
1
import closeWithGrace from 'close-with-grace'
2
-import { passthrough, http } from 'msw'
3
import { setupServer } from 'msw/node'
4
import { handlers as githubHandlers } from './github.ts'
5
import { handlers as resendHandlers } from './resend.ts'
6
7
-const miscHandlers = [
8
- process.env.REMIX_DEV_ORIGIN
9
- ? http.post(`${process.env.REMIX_DEV_ORIGIN}ping`, passthrough)
10
- : null,
11
-].filter(Boolean)
12
-
13
-export const server = setupServer(
14
- ...miscHandlers,
15
- ...resendHandlers,
16
- ...githubHandlers,
17
-)
+export const server = setupServer(...resendHandlers, ...githubHandlers)
18
19
server.listen({ onUnhandledRequest: 'warn' })
20
0 commit comments