• Display test information for pure unit test stories. This is likey used in mdx files and must have a 'name' or 'id' which would appropriately match to the proper story. See the task story for detailed use.

    <Story
    name="ArbitraryTask"
    parameters={{
    cy: () =>
    cy.arbitraryTask(2).then(($num) => expect($num).to.equal(2)),
    }}
    >
    <UnitTest name="ArbitraryTask" />
    </Story>

    Or by providing the unitTestDecorator decorator and setting a cyUnitTest parameter to true

    Parameters

    Returns null | Element