Skip to content
This repository has been archived by the owner on Jun 11, 2020. It is now read-only.

Whitelist @jest/jest-diff and @jest/pretty-format #769

Closed
wants to merge 1 commit into from
Closed

Whitelist @jest/jest-diff and @jest/pretty-format #769

wants to merge 1 commit into from

Conversation

douglascayers
Copy link

@douglascayers douglascayers commented Apr 22, 2020

I think these changes are necessary to support DefinitelyTyped/DefinitelyTyped#44033.

The DefinitelyTyped jest-environment-puppeteer package has transitive dependencies on @jest and the DefinitelyTyped CI is failing because it can't resolve the external dependencies to @jest/jest-diff (source) and @jest/pretty-format (source).

Thanks!

@douglascayers douglascayers changed the title Add @jest/jest-diff and @jest/pretty-format Whitelist @jest/jest-diff and @jest/pretty-format Apr 22, 2020
Copy link
Member

@sandersn sandersn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think these two packages are published in the jest namespace.

@@ -14,6 +14,8 @@
@hapi/wreck
@jest/environment
@jest/fake-timers
@jest/jest-diff
@jest/pretty-format
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These aren't on npm, but jest-diff and pretty-format are. Is there some reason these are not published in the @jest namespace?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sandersn I have no idea since I don't work on the jest codebase. I'm trying to submit changes over on DefinitelyTyped (DefinitelyTyped/DefinitelyTyped#44033) to update typings for jest-environment-puppeteer and that CI process is failing because it can't resolve the jest-diff and pretty-format modules -- which aren't explicitly referenced in the package I'm trying to update, which is more baffling.

I'm trying to figure out what configuration is needed to get the DefinitelyTyped build process to succeed (I've left many comments over there on the PR with my research and attempts so far).

My latest research is documented at DefinitelyTyped/DefinitelyTyped#44033 (comment) if you have any ideas what the DefinitelyTyped error messages mean. One of the errors mentioned adding external libs to this repo's whitelist, so that's how I ended up bothering you here.

Thanks

@douglascayers
Copy link
Author

Closing for now as @jablko discovered a different route that may resolve our build errors.

@sandersn
Copy link
Member

That seems like the right fix. In case you need to revive this PR in the future, I think that it just needs to add jest-diff and pretty-format instead of @jest/jest-diff and @jest/pretty-format.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants