-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Add support tests for project root resolution #6043
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
Add support tests for project root resolution #6043
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
@@ -26,6 +27,52 @@ describe("HRE intialization", () => { | |||
}); | |||
|
|||
describe("createHardhatRuntimeEnvironment", () => { | |||
describe("project root", () => { | |||
describe("no path param is passed", () => { | |||
it("should use the CWD as the default path", async () => { |
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.
This isn't the expected behavior. What happens is that it looks for the closest package.json starting from the CWD, and uses its directory.
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.
The tests have been modified
…tests-for-project-root-resolution
This PR modified the project root resolution logic but did not include tests.
This PR addresses that by adding the missing tests.