-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
test(create-gatsby): add test for handling errors in install plugins #28364
Conversation
@@ -0,0 +1,4 @@ | |||
export const requireResolve = ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ℹ️ Aims to mock require.resolve
that is not yet shipped in jest: jestjs/jest#9543
ef876d4
to
62d0172
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this looks good but I see one test that looks like maybe it's duplicated? Not sure what the exact case is there.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good!
Description
Unit test to catch and lock error on the the install plugins step of the create-gatsby cli