Waffle
Waffle copied to clipboard
global "beforEach" and global variables + support .env
Hi there,
my tests are becoming huges and I would like to organize them in separate files. I would like to know if it's possible to have a global beforeEach where I can setup the contract and variables (owner, addr1, ...) and run it before every test and provide those variables (contract, addresses and so on) to each test file. Is it possible to do so?
Also, is it possible to have a .env file loaded up by the test? I've created a .env but it seems to be not loaded when I run tests.