-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Default plugin tests hangs because of handles in NX 19 #26346
Comments
having the same issues |
We're having this issue after trying to upgrade from 18 to 19.5.1, have also tried 19.4.2. macOS Sonoma Seems to impact all imports from |
Also running into the same issue, which appears to be linked to flaky long running tests on CI. The stacktrace seems to always point to the first import of
|
Hey, I agree this isn't great. There is something in our native code causing the open handle. While we get this figured out, you can add forceExit to your jest config. We'll be investigating this soon to try to figure out the root cause. |
Posting to say we're seeing the same issue with "@nx/devkit": "19.5.7", ` PASS workspace-plugin libs/workspace-plugin/src/executors/build/executor.spec.ts
Test Suites: 2 passed, 2 total Jest has detected the following 2 open handles potentially keeping Jest from exiting: ● CustomGC
● TTYWRAP
|
Having the same issue, and it seems related to
After removing the
|
Hey there! Any plans to solve this? Same thing on MacOS and Nx v19.7.1
|
We have the same issue with Nx 20.0.6 |
Current Behavior
Default tests for plugin should not fails
Expected Behavior
Should not fail or keep handles
GitHub Repo
https://github.com/stephane2024/ReproNX19
Steps to Reproduce
npx create-nx-workspace@latest with
(install dependencies)
create plugin
npx nx add @nx/plugin
npx nx g @nx/plugin:plugin plugin-a --directory libs/plugins/a
npx nx generate @nx/plugin:generator generator-a --directory libs/plugins/a/src
run test
npm run test
Generate plugin works fine:
npx nx generate @org/plugin-a:generator-a mylib --directory libs/ui/v1
Nx Report
Failure Logs
Package Manager Version
NPM: 10.5.0
YARN: 1.22.22
Operating System
Additional Information
We are experiencing issues with the plugins tests after upgrading to NX 19. The tests fails on the CI with some warnings.
The repro repository I've sent is just empty workspace with a react application and a default plugin. When the tests are run with flag --detectOpenHandles, we can see 2 open handles that aren't released.
The plugin actually works and will generate files when called.
Same issue with NX 19.1.2
Thanks for your help 🙏
The text was updated successfully, but these errors were encountered: