Imagine I'm developing an API client for a complex API that is constantly changing and unreliable. I want to test this client using Jest, but I prefer to test it against a snapshot of the API response rather than the live API. However, I don't want the snapshot to become outdated; it would be ideal to update it regularly. My question is - is it possible to achieve this using Jest's snapshot functionality?
I have never used Jest's snapshot feature before, but from what I gather, it might not be suitable for my needs. It seems like Jest snapshot captures the initial API response and then compares it to subsequent live API responses during testing. In my case, I need something different. So, I'm wondering if what I'm looking for is achievable with Jest's snapshot feature, or if I should consider a custom solution?