DEV Community

Discussion on: Reseed your database with Cypress

 
timdeschryver profile image
Tim Deschryver

The data is created with JS, but is just a JSON.
We did it with JS, so we could use some helper functions.
In short, we create a collection of JS objects which structure is the same as our SQL tables.
Afterward, we generate insert statements from these objects.