Tuesday, 3 December 2019

Integration testing in Node with mariadb

I am very new to testing my code. I use hapijs and mariadb using knex/objection library. Could someone point me to some resources on how to test my API? I want to use mocha/chai or JEST library for writing the tests.My main concern is setting up the database part for testing. Should I write some scripts to create a database at start of my unit testing and drop the database at the end of tests?

Submitted December 04, 2019 at 12:24AM by FixMyEnglish

No comments:

Post a Comment