I am getting started with CircleCI’s integration with GitHub for a Node project that uses Typescript and has Mocha tests. When I submit to a branch, CircleCI successfully runs the test commands and the build will pass. But when I added a failing test, the build still succeeds even though CircleCI says there are test errors. The tests are failing and exiting with exit code 1. Is there something I need to explicitly set to fail builds with failing tests?
Node.js project that uses Lerna has failed tests but a successful build build succeeds even though Mocha tests fail
This is because Lerna is swallowing the exit code. There is a fix that was recently merged: https://github.com/lerna/lerna/pull/440