Jest: Run specific tests by file line number

Created on 31 Oct 2017  路  4Comments  路  Source: facebook/jest

Do you want to request a feature or report a bug?

Feature.

What is the current behavior?

Jest can run specific tests on the cli through -t option at present.

What is the expected behavior?

It would be super handy if jest can run specific tests by file line number like RSpec do.

Most helpful comment

Interesting. We'd have to look at the file and somehow extract the name before parsing it as babel probably adds lines. An issue is how to match on an it inside of a describe. Getting the full name without parsing seems non-trivial.

If you can make it work without lots of complexity I'd be supportive, but this probably needs to come from the community

All 4 comments

Interesting. We'd have to look at the file and somehow extract the name before parsing it as babel probably adds lines. An issue is how to match on an it inside of a describe. Getting the full name without parsing seems non-trivial.

If you can make it work without lots of complexity I'd be supportive, but this probably needs to come from the community

Will close this as we aren't planning on tracking this work right now.

Coming back on this request which I'm looking for. @cpojer any chance this is planned in next releases?

+1

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ianp picture ianp  路  3Comments

gustavjf picture gustavjf  路  3Comments

Secretmapper picture Secretmapper  路  3Comments

mmcgahan picture mmcgahan  路  3Comments

samzhang111 picture samzhang111  路  3Comments