Когда тест завершается неудачно в Jest, он всегда завершает работу, выдавая ошибку npm "errno 1".Я нахожу это довольно уродливым и заставляет казаться довольно тревожным.Это стандарт для Jest?Я бы предпочел просто увидеть первые 5 строк.
Test Suites: 1 failed, 1 passed, 2 total
Tests: 1 failed, 3 passed, 4 total
Snapshots: 0 total
Time: 41.881s
Ran all test suites.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! applitoolsci@1.0.0 test: `jest`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the applitoolsci@1.0.0 test 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! /Users/nicklee/.npm/_logs/2019-04-30T19_33_00_584Z-debug.log