youtubeclone-backend
youtubeclone-backend copied to clipboard
API test support
Does this repo have any test support? Something like:
npm run mocha
describe('UserModel', function(){
[...]
it('should list users', async () => {
cheers
at the time, nope. I am going to rewrite this application soon. During this rewrite, I'll consider adding tests.
That would be great. I'm sure you already have your preferred testing library, but I have learned a lot by using Frederic's mocha tests in his repo. It handles all of the JWT which is nice. And uses sequelize. https://github.com/FredericHeem/starhackit/tree/master/server cheers!
thanks for the suggestions, I'll look into it
Hi it's also really helpful to be able to seed a table with a json file. Sequelize supports this. Then when you "npm run mocha", the db tables are created, seeded, then API tested. I find this to be the best part of sequelize.
@manikandanraji what all do you plan to change in the rewrite?