Pytorch-NLU icon indicating copy to clipboard operation
Pytorch-NLU copied to clipboard

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

Open benjamingr opened this issue 4 years ago • 1 comments

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

benjamingr avatar Nov 10 '20 12:11 benjamingr

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

Bnaya avatar Dec 01 '20 10:12 Bnaya