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?
This is because Lerna is swallowing the exit code. There is a fix that was recently merged: https://github.com/lerna/lerna/pull/440