Closed af4oz closed 3 years ago
Hey, @zkindest.
MSW does not have a custom query
property on the request object. Instead, we use the standard URLSearchParams
under req.url.searchParams
. Learn more about working with query parameters.
In your example, accessing the query parameters would look like this:
const threadId = req.url.searchParams.get('thread_id')
GET /api/replies/test?thread_id=123
and also typescript issue