Jest builder is missing "--coverage" and "--no-coverage" options. #3005
Labels
outdated
scope: testing tools
Issues related to Cypress / Jest / Playwright / Vitest support in Nx
type: bug
Expected Behavior
Working in an NX Workspace using Angular and Jest, I cannot use the vscode-jest extension to run and debug unit tests.
It looks like this was possible in the past (comment, pull request), however this no longer works.
Current Behavior
A recent change removed support for the --coverage argument:
#2569
However, the extension will automatically pass in --coverage or --no-coverage depending on configuration, it looks like we don't have control over that. The NX Jest builder should support these arguments.
Failure Information (for bugs)
After configuring the extension to use ng test, the following error is reported in the output console:
Steps to Reproduce
Context
vscode-jest
: 3.2.0Other
Is there a reason that the Jest NX builder has its own API over Jest? Would it be possible for it to pass along any config options to the underlying CLI? I'm not overly familiar with builders, this might not be possible.
The text was updated successfully, but these errors were encountered: