-
Notifications
You must be signed in to change notification settings - Fork 1.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: add resolve-plugin-list tests #5255
Conversation
Add tests on the dependency resolution of plugins. Resolve #5254.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
const copy = { id: "dup" }; | ||
|
||
assert.throws( | ||
() => resolvePluginList([a, copy]), |
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.
It should throw a HardhatError
and test that instead of the string.
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 added the Hardhat error for duplicate plugins under GENERAL
in the error descriptors. Let me know if that is not the category you were expecting.
This looks good. I left a minor comment, but otherwise looks good. |
Adds a plugin loading duplicate id error under the `general` category of Hardhat errors and uses that inside `resolve-plugin-list`.
22d6309
to
c78afd9
Compare
Add tests on the dependency resolution of plugins.
Resolve #5254.