Why does a Mocha test suite pass locally but fail in CI when using the --exit flag?
Goal: Ensure that a Mocha test suite exits with the same status code and warning output when run locally on a developer machine and in a CI container. Constraints: Locally the suite finishes quickly with no warnings, but in CI the same command sometimes fails due to exceeding the default 2000 ms test timeout, lingering asynchronous operations that keep the N