Truffle injects a global web3 instance into your tests and also seems to set up some mocha functions in the global scope (contract, describe and it). When I open the test file for a truffle project in vs code I don't get completion for the global web3 instance and I'm not able to jump to the definition of the mocha testing methods.

How can I configure a project so that the IDE is able to provide intellisense for all the elements inside a truffle test?


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.