When recreating the sequelizejs database with the sequelize.sync({ force: true }) command, then it takes around 3.5seconds before it is done.
Now when running tests this command has to run for each tests thus resulting in super slow tests.
Is there any way I can fix this so the tests run within 1 second?
I decided to clean the tables instead of recreating them the whole time. This works faster and works for what I needed.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With