Skip to content
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

Support for jest debug options (detectOpenHandles, logHeapUsage) #4621

Closed
mchl18 opened this issue Jan 27, 2021 · 2 comments
Closed

Support for jest debug options (detectOpenHandles, logHeapUsage) #4621

mchl18 opened this issue Jan 27, 2021 · 2 comments
Labels
outdated scope: testing tools Issues related to Cypress / Jest / Playwright / Vitest support in Nx stale type: feature

Comments

@mchl18
Copy link

mchl18 commented Jan 27, 2021

Hi, I am really wondering why there only is a small subset of jest parameters supported. Is there any good reason not to?

Description

It would be very helpful if it was possible to add support for jests detectOpenHandles or logHeapUsage options in order to debug memory leaks in tests.

Motivation

We are working on a very large nx-workspace with ~20 modules and 7 apps. Recently our tests started failing with Allocation failed - JavaScript heap out of memory and it would be great to be able to log these things without having to run jest directly, because in doing so our coverage reporting broke.

Suggested Implementation

Basically like it is here: #1217 (comment)

jest.builder.js

    var config = {
+         detectOpenHandles: options.detectOpenHandles, 
+         logHeapUsage: options.logHeapUsage,
          watch: options.watch,
          coverage: options.codeCoverage,
          bail: options.bail,
@vsavkin vsavkin added scope: misc Misc issues scope: testing tools Issues related to Cypress / Jest / Playwright / Vitest support in Nx and removed scope: misc Misc issues labels Jan 27, 2021
@github-actions
Copy link

This issue has been automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if no further activity occurs.
If we missed this issue please reply to keep it active.
Thanks for being a part of the Nx community! 🙏

@github-actions
Copy link

This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated scope: testing tools Issues related to Cypress / Jest / Playwright / Vitest support in Nx stale type: feature
Projects
None yet
Development

No branches or pull requests

2 participants