Hacker News new | ask | show | jobs
by sayan51 1820 days ago
Good question! I am not a user of Jest. So can't really comment on that. Taking a look at the docs from jest, it seems to me that my spy API is far more straightforward. Also it can be used by itself. Theoretically it can also be used without unit testing. It happens to be the case that spy is used generally in tests. Another point to note is that the implementation is not tied to any test framework.