Skip to content

Latest commit

 

History

History
10 lines (7 loc) · 671 Bytes

tests.md

File metadata and controls

10 lines (7 loc) · 671 Bytes

Tests

[Truffle] In-test debugging

Truffle is our tool of choice for tests. Even thought it is a great tool, sometimes it's difficult to debug when something does not work. Truffle has provided a new method to debug tests. Follow the instructions here to know how to do it.

For us, that documentation wasn't enough because we write our tests in typescript and the debug keyword makes them fail. To fix that problem, it's necessary to define that function at the top of the file. Please add

declare function debug(input: any): Promise<void>;