I'm using cypress-each to run dynamic tests, but the number of tests overall is large and I'd like to use cypress-grep to add @smoke tags to the data, and run a fraction of the tests.
How do I add tags to
const title = (data) => `Testing ${data}`
it.each(data)(title, (data) => {})
I can use a function to customize the title, how can customize the options object?
This what I've tried,
const title = (data) => `Testing ${data}`
it.each(data)(title, {tags: '@smoke'}, (data) => {})
but obviously it doesn't work - the smoke tag is applied to all test (added as example of tag syntax).