Skip to content
This repository has been archived by the owner on Sep 6, 2023. It is now read-only.

Data driven tests in Jest only show the last test in the group #83

Open
benjamingr opened this issue Nov 10, 2020 · 1 comment
Open
Labels
bug Something isn't working

Comments

@benjamingr
Copy link
Contributor

Need to better support Jest data driven tests (.each on tests).

@benjamingr benjamingr added the bug Something isn't working label Nov 10, 2020
@Bnaya
Copy link
Contributor

Bnaya commented Dec 1, 2020

The optimal solution from that would be to generate unique test name using jest's mechanism, for example:

  it.each([
    ['a', 1],
    ['b', 2],
  ])('%s %p Should add 4 todos',

As documented:
https://jestjs.io/docs/en/api#testeachtablename-fn-timeout

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants