Open VladyslavKurmaz opened 4 years ago
Hi! Seems like, you haven't started docker-compose and/or haven't run migrations for test database.
Here is checklist with steps: https://github.com/WebbyLab/webbylab-starter-app-for-nodejs#run-development-version
Ok, thanks for the response, I will check it. I'm working on Jenkins integration and need to have clear understanding how build process is configured to implement correct PR/PUSH builds. I will create separated PR with clarifications ... Here is my 5 cents that can be considered to review as an improvement. In my simple world, unit tests should be executed in isolated environment, when all other related components are mocked and have predefined behavior. As far as I understood, current implementation uses "real db", so it looks like integration tests when two or more "real" components are involved.
Observed behavior
'npm test' run doesn't finish successfully
Expected behavior
No errors during tests executions
Steps to reproduce
cp .env.defaults .env
npm i
npm test
A couple of output lines from the log's tail