I prefer the ethers.js library to web3. Is there a way to configure truffle test to use ethers.js instead of web3?
Ethereum Stack Exchange is a question and answer site for users of Ethereum, the decentralized application platform and smart contract enabled blockchain. It only takes a minute to sign up.Sign up to join this community
Not just what you're asking, but may help. I am using etherlime - it's a framework based on ethers.js. There is a guide how to configure your project from truffle to etherlime and it includes a section for test migration. Hopes it would help - https://etherlime.readthedocs.io/en/latest/migration-from-truffle-guide.html.
Actually, I have wrote some tests using ethers.js but it is a little bit annoying when you need to change the signer(msg.sender) for some function execution. You have to connect a wallet to a contract every time you needed to use different sender.