Skip to content

CLI running tests filtered by line does not work anymore #3049

Closed
@sculpt0r

Description

@sculpt0r

According to docs: https://github.com/avajs/ava/blob/main/docs/05-command-line.md#running-tests-at-specific-line-numbers it is possible to run a specific test by line number.

Please open the StackBlitz linked in the documentation. It should work fine. Then, change the AVA version to 4.3.0 in package.json. Instal with npm i and try to run the test again with npm run test. Now there is an error in the StackBlitz terminal:
image

Also, in a different project with TS, when I tried to run a test with a line filter, I received only some generic information:
image

It would be good to provide some more output to the console - because right now I don't know the reasons why the file can't be parsed? Without the line filter - tests in the file work fine 🤔

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions