question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

test.concurrent support

See original GitHub issue

it appears that the linter ignores test.concurrent calls, for example - currently I have the jest/no-empty-title rule enabled:

Screen Shot 2019-10-16 at 16 20 16

with just test:

Screen Shot 2019-10-16 at 16 20 28

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
G-Rathcommented, Oct 16, 2019

@daniellacosse from memory, a couple of things need doing:

  • concurrent needs to be added as a value in the right enum,
  • concurrent should be checked for what it supports, as while I suspect it is only test.concurrent, we need to know if it.concurrent, test.concurrent.only, test.concurrent.each, etc are valid in jest.
  • All the rules should be checked, as jest/no-empty-title isn’t the only one that this affects (or maybe it is - either way, need to check).
  • The jest/no-empty-title rule needs to be updated to include concurrent in what it checks. iirc this could be just a matter of adding it to the right enum, but otherwise it’ll just be a matter of passing the new enum value in the right place.
1reaction
SimenBcommented, Dec 28, 2019

Go for it!

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found