MongoDB??
Which libraries do you use ?
I've seen mocha, chai, expect, jest, ava, enzyme, ...
If you don't mind doing it manually, try Postman.
Depends what kind of tests you are talking about : unit, integration etc...
If you don't want to get too much deep into the rabbit hole, go with Jasmine. Mocha and Chai will facilitate certain things but it's not like you can't live without it. You won't need Enzyme because you're not testing Javascript components.
Hapi js uses a nice library for that
you can use mocha, chai and supertest (or chai-http plugin which extends chai with the supertest api) with these package you have the tools you need for almost every test you wantto do. i use them for testing REST using Express and mongoDB (mongoose) and it works just fine :)
It doesn't matter what you use, just do it
Обсуждают сегодня