Sunday, 28 January 2018

Mocking Database for Tests?

I'm using Express with Sequelize and even looking at other ORM solutions it doesn't really seem there is much for running tests and seeding data/clearing data for each test.I'm used to Rails where this stuff gets taken care of automatically. Currently I just load the fixtures via sequelize-fixtures and then truncate the tables every test run. Is this bad practice? Seems like there aren't too many solutions out there in this ecosystem.

Submitted January 29, 2018 at 12:45AM by howthewtf

No comments:

Post a Comment