CI/CD error

Jest: A worker process has failed to exit gracefully

Something in the test run (an open handle, timer, or connection) is keeping the Node process alive after the tests themselves finished.

Why this happens

How to fix it

  1. Run with `--detectOpenHandles` locally to find exactly what's still open
  2. Explicitly close everything you open in `afterAll`/`afterEach` (DB connections, servers, `clearInterval`/`clearTimeout`)
  3. Use `--forceExit` in CI only as a stopgap while you track down the real leak, not as a permanent fix