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

A mock leaking into other tests

One test does jest.spyOn(Date, "now").mockReturnValue(0). Later tests in the file start failing on dates. What is the cleanest fix?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions