if you call hardhat test, the typechain definitions that are generated immediately are not used in the tests and you will see an error if they were generated for the first time or the cached typechain definitions have changed
likely has to do with the order the test files are loaded/compiled by tsc vs. when the typechain definitions are generated
if you call
hardhat test
, the typechain definitions that are generated immediately are not used in the tests and you will see an error if they were generated for the first time or the cached typechain definitions have changedlikely has to do with the order the test files are loaded/compiled by tsc vs. when the typechain definitions are generated