-
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
jest throws Validation Warning: Unknown option "coverageDirectory"
in new, clean (Angular) repo
#15752
Comments
Validation Warning: Unknown option "coverageDirectory"
in new&clean repoValidation Warning: Unknown option "coverageDirectory"
in new, clean (Angular) repo
I've now also attached a repro repo here |
I can confirm to have started seeing this after updating to the latest version of the NX. |
The same for me. or just 'nx run-many --all --target=test --coverage=true' |
+1 |
1 similar comment
+1 |
This is a bug in jest 29, |
If you run npx jest in the given module directory, it does not give the warnings, plus it honors the jest.config.ts file. I am having what I think is a related issue, where the reporters key is ignored (and reported as a syntax error) if I run nx test module, but if am in the module root directory, it honors the config settigns for reporters and does not complain about syntax errors. |
we also see that no reports are generated when we see the warning. Removing the coverageDirectory fixes this for us and reports are generated again. |
Hi all 👋 any fix for this yet? |
@ojemuyiwa it is an upstream issue with jest. a fix has been merged and is waiting on a release for it. |
Released in 29.6.0 jestjs/jest#14180 (comment) |
@AgentEnder Reopen this issue because of #18096 |
going to leave closed as you can still manually bump to v29.6.x on your own. we ran into some odd memory issues so reverted in attempt to track down. |
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. |
Current Behavior
Running
nx test app
throws validation warnings.Expected Behavior
Don't show validation warnings on supported config properties.
GitHub Repo
https://github.com/alexciesielski/nx-test-warning-showcase
Steps to Reproduce
npx create-nx-workspace@latest
=>package-based monorepo
=>app
=>yes
tsconfig.base.json
(without it generating an angular app throws an error, guess this is also a bug?)npm i -D @nrwl/angular
npx nx g @nrwl/angular:application --name=app
nx test app
=> warning in consoleNx Report
Failure Logs
Additional Information
No response
The text was updated successfully, but these errors were encountered: