Support for jest debug options (detectOpenHandles, logHeapUsage) #4621
Labels
outdated
scope: testing tools
Issues related to Cypress / Jest / Playwright / Vitest support in Nx
stale
type: feature
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
orlogHeapUsage
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
The text was updated successfully, but these errors were encountered: