Jest Spy on an Exported Function
Apr 2, 2024 · 1 min read · The spyOn utility in Jest is incredibly versatile, enabling you to monitor, track, and even replace the behavior of functions. However, applying this to a named export from a module can be a bit tricky due to the specific parameters required by spyOn...
Join discussion