Skip to content
RED SAGSkills
medium10 pts · first answer countstest-automationjesttest-doubles

Faking an async API call

fetchRate() returns a promise. In a Jest test of convert(), you want it to resolve to 22.85. Which line does that on a jest.fn() mock?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions