Logging the name of it() functions

In an aroundEach() I want to log the name of the spec, that is the name of the it() function.

Currently, I am able to log spec.name and that gives me the name of the describe(). How can I log the name of the it()?

And to clarify, spec.name and suite.name are the same value, the name of the describe(). Is this a bug or am I missing something?

The aroundEach() receives 3 arguments:

  • spec

  • suite

  • data

The spec should have the information of the running spec.

Hi Luis,

I’m finding the the spec.name is the suite.name. So I would call this a bug. Are you able to reproduce?


Can you send the spec here