Skip to content

tests suddenly started getting cut off halfway through only when running through nx -  ELIFECYCLE #31689

Open
@brandoncollins7

Description

@brandoncollins7

Current Behavior

I don't know what is going on but I am getting a very strange and impossible to debug error when running my tests through NX on my local machine.

The tests all pass when I run them through other methods. but when I run them with the command nx test trade-order-api..... i see them running and a bunch of them pass then suddenly it just exits with:

Image

this is a monorepo of which multiple projects that have not had code changes in a looooong time have all started failing their tests with this error. Only when running through nx. if I run jest/mocha they all pass successfully.

Expected Behavior

tests should all pass

GitHub Repo

No response

Steps to Reproduce

  1. I have no idea

Nx Report

NX   Report complete - copy this into the issue template

Node           : 20.19.0
OS             : darwin-arm64
Native Target  : aarch64-macos
pnpm           : 10.10.0

nx (global)        : 21.2.1
nx                 : 21.2.1
@nx/js             : 21.2.1
@nx/jest           : 21.2.1
@nx/eslint         : 21.2.1
@nx/workspace      : 21.2.1
@nx/cypress        : 21.2.1
@nx/devkit         : 21.2.1
@nx/esbuild        : 21.2.1
@nx/eslint-plugin  : 21.2.1
@nx/nest           : 21.2.1
@nx/next           : 21.2.1
@nx/node           : 21.2.1
@nx/playwright     : 21.2.1
@nx/plugin         : 21.2.1
@nx/react          : 21.2.1
@nx/storybook      : 21.2.1
@nx/vite           : 21.2.1
@nx/web            : 21.2.1
@nx/webpack        : 21.2.1
typescript         : 5.8.3
---------------------------------------
Community plugins:
@nx-tools/nx-container : 6.2.0
@nx-tools/nx-prisma    : 6.5.0
---------------------------------------
Local workspace plugins:
executors
---------------------------------------
Cache Usage: 437.72 MB / 92.64 GB

Failure Logs

ELIFECYCLE  Test failed. See above for more details.

Package Manager Version

No response

Operating System

  • macOS
  • Linux
  • Windows
  • Other (Please specify)

Additional Information

No response

Metadata

Metadata

Assignees

Labels

priority: highHigh Priority (important issues which affect many people severely)scope: corecore nx functionalitytype: bug

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions