Welcome!

Welcome to week nine!!! I hope you enjoyed learning about writing tests for smart contracts last week. This week, we will be going back to the study material repository here. But there is a small change, last week, you learned about writing tests in Solidity. But this week, you are going to write it with JavaScript using the Hardhat testing environment.

Mission & Motivation:

Testing is crucial when you want to ship your dApp. And hardhat testing environment makes it convenient and takes care of things for you. You will be writing tests for existing contracts without any guidelines. Keep in mind that coverage is critical. You have to test every function for every scenario, filter, and expected error.

Assignment:

Please spend some time on hardhat documentation to learn about their testing environment here. And write tests for the DAORoom, Lottery, and AddressBook contract from the solidity study material repository.

P.S: Please use the office hours if you are stuck.