-
Notifications
You must be signed in to change notification settings - Fork 452
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
[Bug]: Failed to collect coverage from. | 'rootDir' is expected to contain all source files. #4219
Comments
I'm running into something similar, also with a Typescript monorepo:
jest.config.ts:
Strangely, the actual coverage report seems to be generated. |
I was able to make the errors go away by importing the In other words changing from this form in my
to this form (since my
made the errors go away. |
Version
29.1.0
Steps to reproduce
Have a monorepo with multiple typescript packages and nodejs apps
run testing with coverage set to true
jest config:
Expected behavior
Expected to return the complete coverage like so:
Actual behavior
receive the following error:
Debug log
ts-jest.log
Additional context
No response
Environment
The text was updated successfully, but these errors were encountered: