Fixes the type checking in test files by including the test directory in the list of typescript's watched directories
As a side effect, it included the test directory in the final build. It was fixed by using a separate config for the production build that extends the main one but excludes the test directory from the production build. The solution was taken from here
I had to fix types in one place where the Contract interface was used from a different package (ethers/contracts) instead of ethers directly. I also ran npx yarn-deduplicate to remove duplicated packages.
This PR:
Contract
interface was used from a different package (ethers/contracts) instead of ethers directly. I also rannpx yarn-deduplicate
to remove duplicated packages.