Skip to content

Unit testing for undici.fetch #1054

Answered by mcollina
jennyEckstein asked this question in Q&A
Discussion options

You must be logged in to vote

I would recommend to follow https://undici.nodejs.org/#/docs/best-practices/mocking-request. All things apply to fetch as request as they are underpinned by the same logic.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ronag
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants