Sunday 21 April 2019

Writing tests for controllers with Jest?

I'm building an app and using sequelize for my DB. I'm unsure what approach I should take to writing tests for my controllers using sequelize. Am I supposed to seed the database and then test the controllers using the seeded database? I have a few associations that might be a pain to seed but I don't know if there's a better approach. I've been googling a lot but I can't seem to find anything specific to sequelize testing with jest.Any advice would be appreciated!

Submitted April 21, 2019 at 10:23PM by RubyNewbie-

No comments:

Post a Comment