1

I am looking to use Truffle for testing.

For JS tests (in test/*.js), Truffle expects (requires?) all my solidity files (mocks, contracts) to be located in contracts/.

I would prefer if my mocks live in test/mocks to reduce confusion of people that are reading contracts/ and don't care about my test mocks.

It is possible for a Truffle JS test to references Solidity mocks OUTSIDE of the contracts/ folder?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.