2

I have a parameterized test:

test.each([myObjWithMyPropertyTrue, myObjWithMyPropertyFalse])
  ('should do something when %o', (myObj) => {

but instead of printing the entire object with %o, I want to print the value of property MyObj.myProperty

does anyone know if this is possible?

eriksmith200
  • 2,159
  • 5
  • 22
  • 33
  • 1
    Does this answer your question? [jest .each name access object key](https://stackoverflow.com/questions/56800074/jest-each-name-access-object-key) – segFault Feb 25 '20 at 19:09
  • 1
    @segFault yes the tagged template literal form of describe.each solves this, thanks :) – eriksmith200 Mar 02 '20 at 07:54

0 Answers0