I'm using Hardhat with TypeScript/Ethers/Chai. I can't find a way to test BigNumber values.
expect(someBigNumber).to.be.equal.to.(otherBigNumber) will (understandably) throw an error like this one:
AssertionError: expected 9999969797040000000000 to be a number or a date.
I installed chai-bn and followed the example here. I can't run the tests because
Property 'bignumber' does not exist on type 'Assertion'. I can't figure out the issue and I can't find a working example either. chai-bignumber doesn't work either.
I'd appreciate if someone could point me in the right direction.