Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TAP output no longer shows the line that failed #569

Closed
sindresorhus opened this issue Feb 23, 2016 · 2 comments
Closed

TAP output no longer shows the line that failed #569

sindresorhus opened this issue Feb 23, 2016 · 2 comments
Labels
bug current functionality does not work as desired good for beginner help wanted

Comments

@sindresorhus
Copy link
Member

import test from 'ava';

test(t => {
    t.fail();
});
❯ ava --tap
TAP version 13
# [anonymous]
not ok 1 - Test failed via t.fail()
  ---
    operator: fail
    expected: false
    actual: false
    at: 
  ...

1..1
# tests 1
# pass 0
# fail 1
@sotojuan
Copy link
Contributor

I think I fixed this, does this look fine?

Turns out that the stack getSourceFromStack in the TAP reporter was getting did not match the index, so I just decreased the index (line number now in index 2, not 3).

screen shot 2016-02-23 at 3 18 44 pm

@sindresorhus
Copy link
Member Author

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug current functionality does not work as desired good for beginner help wanted
Projects
None yet
Development

No branches or pull requests

2 participants