Skip to content

Commit b7190e1

Browse files
committed
remove unused msw ping handler
1 parent 9bf53d3 commit b7190e1

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

tests/mocks/index.ts

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,9 @@
11
import closeWithGrace from 'close-with-grace'
2-
import { passthrough, http } from 'msw'
32
import { setupServer } from 'msw/node'
43
import { handlers as githubHandlers } from './github.ts'
54
import { handlers as resendHandlers } from './resend.ts'
65

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-
)
6+
export const server = setupServer(...resendHandlers, ...githubHandlers)
187

198
server.listen({ onUnhandledRequest: 'warn' })
209

0 commit comments

Comments
 (0)