jest .each name access object key
问题 Is it possible to access an object's key inside the name portion of a .each ? let accounts = [ { details: { company_name: "company_name", email, password: "asdf", }, find: [ "_id", "company_name", "email", "type", ], type: "creator" }, { details: { email, first_name: "first_name", last_name: "last_name", password: "asdf", }, find: [ "_id", "email", "first_name", "last_name", "type", ], type: "user" }, ] describe.each(accounts)( "%s", // <-- access the 'type' key, e.g. account.type function