I have the following use case for some automated tests:
- Run a JS application which reads/writes various data from/to Fake IDB
- Serialize the complete state of Fake IDB (e.g. to JSON)
- In a new context, rehydrate Fake IDB using the previous serialized state
- Run a JS application which reads/writes various data from/to Fake IDB, leveraging the state captured in step 2
Is there an easy way to achieve this with Fake IDB, or do I need to manually read/write all of the databases and objects using the regular IDB APIs?
I have the following use case for some automated tests:
Is there an easy way to achieve this with Fake IDB, or do I need to manually read/write all of the databases and objects using the regular IDB APIs?