Tuesday 6 June 2017

Testing data access layers

What are considered the best practices for testing data access layers in node?For background - I've started a new project using node, with a database using postgres and the pg module for data access. Nice and simple, but I'm struggling with the testing side of it.I've come across the pgmock library which works well enough, but does nothing to prove that the SQL is correct.Is there any considered best ways to achieve this short of full stack acceptance tests?

Submitted June 06, 2017 at 08:42PM by sazzer

No comments:

Post a Comment