Open GaryB432 opened 2 months ago
I have a similar issue where since upgrading to nx 19 from 17. Our symptoms are that we do not get the progress of the jest run in watch mode. We also don't get the "Watch Usage" commands printed out at the end of a run. It makes it hard to use jest in watch mode as you are unsure if Jest is actually running tests or not until the results of the spec files are printed to the console.
As mentioned above - jest behaves as it always has and displays progress / "Watch Usage" commands if I run it directly without nx via npx jest --watch
Node : 20.9.0
OS : win32-x64
Native Target : x86_64-windows
npm : 10.8.1
nx : 19.6.5
@nx/js : 19.6.5
@nx/jest : 19.6.5
@nx/linter : 19.6.5
@nx/eslint : 19.6.5
@nx/workspace : 19.6.5
@nx/angular : 19.6.5
@nx/cypress : 19.6.5
@nx/devkit : 19.6.5
@nx/eslint-plugin : 19.6.5
@nrwl/tao : 19.6.5
@nx/web : 19.6.5
@nx/webpack : 19.6.5
typescript : 5.5.4
---------------------------------------
Registered Plugins:
@nx-dotnet/core
---------------------------------------
Community plugins:
@ngrx/component-store : 18.0.2
@ngrx/effects : 18.0.2
@ngrx/entity : 18.0.2
@ngrx/operators : 18.0.1
@ngrx/router-store : 18.0.2
@ngrx/schematics : 18.0.2
@ngrx/store : 18.0.2
@ngrx/store-devtools : 18.0.2
@nx-dotnet/core : 2.1.0
@progress/kendo-angular-dateinputs : 16.5.0
@progress/kendo-angular-dropdowns : 16.5.0
@progress/kendo-angular-indicators : 16.5.0
@progress/kendo-angular-intl : 16.5.0
@progress/kendo-angular-l10n : 16.5.0
@progress/kendo-angular-label : 16.5.0
@progress/kendo-angular-popup : 16.5.0
@progress/kendo-angular-progressbar : 16.5.0
@progress/kendo-angular-treeview : 16.5.0
@progress/kendo-angular-upload : 16.5.0
@testing-library/angular : 15.1.0
Current Behavior
I have to
Ctrl+C
toTerminate batch job (Y/N)
out ofnpx nx test my-proj --watch
and cannot use any of the keys shown below, .Running
npx jest --watch
in the project root works as expected, listing and responding to the keys shown below, e.g.Press a to run all tests
orPress q to quit watch mode
wlog.Expected Behavior
npx nx test my-project --watch
in a brand-new workspace should watch tests the same waynpx jext --watch
in the project root does.GitHub Repo
No response
Steps to Reproduce
This works as expected
Nx Report
Failure Logs
No response
Package Manager Version
No response
Operating System
Additional Information
Watch Usage