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
hardhat test doesn't run any tests? #3117
Comments
This issue is also being tracked on Linear. We use Linear to manage our development process, but we keep the conversations on Github. LINEAR-ID: 1b539d9a-7257-4706-9b39-8193dbb6f391 |
Do you have any script (shortcut) for |
Create new test file (inside test folder with name like a.test.js), paste this: describe("testDesc", function () {
it("testIt", async () => {
console.log("Works!");
});
}); Run command: |
Hey @JimLynchCodes, The problem here is that you are using an async function within a describe, and that's not supported by mocha. Your Thanks @woojiq for helping :) |
I didn't think async describe was an issue before, because if I changed to async everything worked for me as before. But now I realized that this word means nothing if we do not cause anything asynchronous in the body. So I added |
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
What is the problem to do async code in beforeEach? let owner, user1, user2;
beforeEach() {
[owner, user1, user2] = await ethers.getSigners();
} P.S. didn't test |
Hi, when I point directly to my file with tests in it I get the output
0 passing
Why does it not see any of my tests???
The text was updated successfully, but these errors were encountered: