bahmutov / snap-shot

Jest-like snapshot feature for the rest of us, works magically by finding the right caller function
169 stars 3 forks source link

Require a snapshot for use in other tests. #37

Open bas080 opened 7 years ago

bas080 commented 7 years ago

I have this usecase where I would like to store my snapshot(happens automatically). The next time I run the test I would like it to use that snapshot (which is an array of things) to loop over. The reason is because I know the snapshot is valid. If the data that the snapshot was taken from changes, my other tests do keep running because they use the verified snapshot data.

bahmutov commented 7 years ago

I feel like this is extra feature that would be complicated but you can do it yourself using snap-shot-core module!

Sent from my iPhone

On Feb 22, 2017, at 06:03, Bas notifications@github.com wrote:

I have this usecase where I would like to store my snapshot(happens automatically). The next time I run the test I would like it to use that snapshot (which is an array of things) to loop over. The reason is because I know the snapshot is valid. If the data that the snapshot was taken from changes, my other tests do keep running because they use the verified snapshot data.

Should I be doing it this way? Would/should it be possible with snap-shot? — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.