Skip to content

RuleTesters AssertionError.actual is not being displayed #5

@florianb

Description

@florianb

Hey, i am stucked implementing the fix for avajs/eslint-plugin-ava#21

I am not able to debug my fix since ava outputs only the expected value alongside with the error message:

no-only-test › invalid: const test = require('ava');
test.cb.only(t => { t.pass(); t.end(); });
  /...rule-tester.js:502

  Output is incorrect.
...

I tried to find out how to fix that and i was even thinking about patching eslint, to let the error message contain more information. Digging deeper i found out that RuleTester uses the common assert library's equal to match the expected output with the fixResult.output. For me it seems like Ava should also print error.actual in the case a fix-rule is tested.

I was currently not able to find out where the best look for a point to improve the output of eslints-fix tests. And i somehow thought this might be the rightplace since #3 discusses a topic around fixes, too.

I would appreciate any hint how to improve this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions