-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Cleanup displayName
type
#10010
Labels
Milestone
Comments
4 tasks
I'd like to try this out. If I understand the issue correctly, the type |
kenrick95
added a commit
to kenrick95/jest
that referenced
this issue
May 15, 2020
kenrick95
added a commit
to kenrick95/jest
that referenced
this issue
May 16, 2020
Fixes jestjs#10010 Fix test Fix test
kenrick95
added a commit
to kenrick95/jest
that referenced
this issue
May 16, 2020
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I think this is just wrong type in
ProjectConfig
: https://github.com/facebook/jest/blob/c6e63f331b491082075aef4c48ced355ae72add5/packages/jest-types/src/Config.ts#L87-L92.We normalize this to an object in
jest-config
(if passed): https://github.com/facebook/jest/blob/c6e63f331b491082075aef4c48ced355ae72add5/packages/jest-config/src/normalize.ts#L829-L858So type out should be either object or missing entirely, not a string.
E.g. here it deals with it just being a
string
, which I'm pretty sure cannot actually happen: https://github.com/facebook/jest/blob/c6e63f331b491082075aef4c48ced355ae72add5/packages/jest-reporters/src/utils.ts#L18-L34#8612 also introduces some code around this.
The text was updated successfully, but these errors were encountered: