You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ERROR: Coverage for lines (52.52%) does not meet global threshold (80%)
ERROR: Coverage for functions (30.63%) does not meet global threshold (80%)
ERROR: Coverage for statements (52.52%) does not meet global threshold (80%)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] test:coverage: `c8 npm run test:ava`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] test:coverage script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2020-06-20T21_03_37_542Z-debug.log
npm ERR! Test failed. See above for more details.
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: