What is the best method to test a library contract with Chai/Mocha in solidity using hardhat?
I'm getting:

> 
> Types containing (nested) mappings can only be parameters or return
> variables of internal or library functions.
> 
> 
> 

When I try to make the library a contract for testing