- Install dependencies in project directory(working with node v12.10.)
npm i
- Install ganache-cli (globaly)
npm i -g ganache-cli
- In 1st terminal window fork mainnet with ganache-cli
ganache-cli -p 7545 -f <https://YOUR_ETH_PROVIDER>
- In 2nd terminal window run tests
trufle test
!Note: To reset data, restart ganache-cli after each test.