cgewecke / eth-gas-reporter

Gas usage per unit test. Average gas usage per method. A mocha reporter.
MIT License
603 stars 94 forks source link

methods disappear when switching to typescript #237

Closed YannyD closed 3 years ago

YannyD commented 3 years ago

I can't get any methods to show up when I switch the test files to typescript. I have: 1.) Added hardhat.config.ts to "include" in tsconfig.json 2.) passed (args, hre) into the describe fallback function 3.) Use import instead of require

My tests all pass, but the tool doesn't show any methods or gas stats. When I convert the exact same test to javascript, the gas stats do appear. What else should we look out for?

I am on ubuntu 20.04