I have a few test files:
./test/ContractA.test.js
const { expect } = require("chai");
describe("ContractA tests", function () {
it("does function one", async function () {
expect(await contractA.someFunc()).to.equal(something);
});
it("does function two", async function () {
expect(await contractA.someOtherFunction()).to.equal(somethingOtherThing);
});
});
./test/ContractB.test.js
const { expect } = require("chai");
describe("ContractB tests", function () {
it("does function one", async function () {
expect(await contractB.someFunc()).to.equal(something);
});
it("does function two", async function () {
expect(await contractB.someOtherFunction()).to.equal(somethingOtherThing);
});
});
When I run hardhat test
all the files run.
How Can I run all the tests in ContractA.test.js?
Things I've Already Tried
hardhat test ./test/ContratA.test.js
- this does not run any tests at all...
hardhat test --grep "ContractA"
- also does not run any tests...