mirror of
https://github.com/hanzoai/msw.git
synced 2026-09-24 17:00:34 +00:00
11 lines
215 B
TypeScript
11 lines
215 B
TypeScript
import { http, passthrough } from 'msw'
|
|
import { setupWorker } from 'msw/browser'
|
|
|
|
const worker = setupWorker(
|
|
http.get('*/resource', function originalResolver() {
|
|
return passthrough()
|
|
}),
|
|
)
|
|
|
|
worker.start()
|