-
Notifications
You must be signed in to change notification settings - Fork 9
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
Throw better exception when failing to load plugin #447
Throw better exception when failing to load plugin #447
Conversation
@@ -68,7 +68,7 @@ describe('generate (cjs)', function () { | |||
'cjs-main-file-does-not-exist' | |||
); | |||
await expect(generate(FIXTURE_PATH)).rejects.toThrow( | |||
'Unable to determine plugin entry point.' |
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 tried to construct a package.json
test case to throw the existing default error... and couldn't figure it out.
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'll try to take a look at this so we can test the old exception still.
@bmish sorry for dropping the ball on this one - totally slipped off my task list. Looks like |
@JoshuaKGoldberg no problem and sorry for the delayed review. I will see if I can add a test and get CI cleaned up (#288) in the near future so we can merge this. |
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'm not sure how to improve the tests further, so I'm going to go ahead and merge this. Sorry again about the delay.
Woohoo! I'm just happy it's in, thanks! |
Fixes #446.
Please forgive me for rushing ahead, I was excited about the bugfix. 😄