olalonde / jest-quickfix-reporter

Jest reporter for Vim's QuickFix
11 stars 3 forks source link

Verbose error messages #1

Closed skbolton closed 3 years ago

skbolton commented 5 years ago

I tend to get a lot of error messages like this

Expected value to equal: ["/auth/authenticate", {"password": "stilltheman"}] Received: ["/auth authenticate", {"password": "stilltheman", "username": "randysavage"}] Difference: - Expected + Received Array [ "/auth/authenticate", Object { "password": "stilltheman", + "username": "randysavage", }, ]

I feel like the Difference: - part on doesn't really add any value and makes the error messages in quickfix and in neomake virtual text output a little ridiculous. Maybe we could chop the error message of there and get this instead:

Expected value to equal: ["/auth/authenticate", {"password": "stilltheman"}] Received: ["/auth/authenticate", {"password": "stilltheman", "username": "randysavage"}]