This PR enhances parsing of it.each and describe.each by allowing them to also be found when deeper in a property chain (e.g. it.only.each, it.concurrent.only.each, describe.only.each). In addition, it also allows the Tagged Template Literal syntax of it.each and describe.each to be parsed.
It updates the logic that identifies it and describe blocks to walk up the callee chain to the root when there are multiple levels of callee (e.g. for it.each(scenarios)(name, fn)), and then to walk up the tag and object tree to the root (e.g. each->only->concurrent->it).
This PR enhances parsing of
it.each
anddescribe.each
by allowing them to also be found when deeper in a property chain (e.g.it.only.each
,it.concurrent.only.each
,describe.only.each
). In addition, it also allows the Tagged Template Literal syntax ofit.each
anddescribe.each
to be parsed.It updates the logic that identifies
it
anddescribe
blocks to walk up the callee chain to the root when there are multiple levels of callee (e.g. forit.each(scenarios)(name, fn)
), and then to walk up the tag and object tree to the root (e.g.each
->only
->concurrent
->it
).Jest API methods that should now be supported (from https://jestjs.io/docs/en/api):
describe.only.each(table)(name, fn)
describe.skip.each(table)(name, fn)
describe.each`table`(name, fn)
(and all variations above)test.concurrent.each(table)(name, fn, timeout)
test.concurrent.only.each(table)(name, fn)
test.concurrent.skip.each(table)(name, fn)
test.only.each(table)(name, fn)
test.skip.each(table)(name, fn)
test.each`table`(name, fn)
(and all variations above)Fixes #53 Fixes #59