score:0

i don;t know about using jest with cypress (you may just be able to add jest package to the app).

but cypress has cy.stub(). does this work?

import { mount } from '@cypress/react'

const ondissmis = cy.stub()

describe('tags', () => {

  describe('basic', () => {
    mount(<component ondismiss={ondissmis} />)
  })
})

Related Query

More Query from same tag