Skip to content
loading...

re: NodeJS - Unit Tests - testing without hitting database. Confusings. VIEW POST

FULL DISCUSSION
 

Hi,
I have same issue.
I'm new to writing test cases for my project - Typescript, Node js, MySQL.
Integration Testing:

  • I done integration testing with connecting to Database. Unit Testing:
  • Here is the main concepts comes. I'm totally confused while writing the unit test cases for presently working project.
  • project Tech: Typescript, node js, MySQL.
  • I stuck with Database mocking concept. I want to write unit test cases without connecting to Database. Please can any one help in this. Thank you.
code of conduct - report abuse