The error output always shows a wrong line number when Jest is used instead of truffle mocha/chai
if you run the test it will display an error at Object.<anonymous> (tests/anchorV0.spec.js:17:19) while the actual error is located at line 23 where the expect statement is.
Moreover if you add extra blank lines in the test file the error line will be different ...
Expected behaviour
the error output should display the actual line where the error is raised in our example it would be line 23
configuration
Behaviour
The error output always shows a wrong line number when Jest is used instead of truffle mocha/chai if you run the test it will display an error![image](https://user-images.githubusercontent.com/16853695/92262204-0eb1c000-eedb-11ea-8cd9-7e388c6a5b2b.png)
at Object.<anonymous> (tests/anchorV0.spec.js:17:19)
while the actual error is located at line 23 where the expect statement is. Moreover if you add extra blank lines in the test file the error line will be different ...Expected behaviour
the error output should display the actual line where the error is raised in our example it would be line 23
How to reproduce
git clone the repo https://github.com/zgorizzo69/truffle-OZ-Jest-Fail and run
yarn && yarn test