import ELMComponent from “@satinx/core”
const PrepScreen = () => {
const handleGeneratedPoints = async (x: number, y: number, width: number)=> { }
return (<ELMComponent handleGeneratedPoints={handleGeneratedPoints} />)
}
now in my jest, I want to access ELMComponent’s props. It is an external component that has role defined its div (looking its code)
import {render} from "@testing-library/react"
const { getByRole } = render(< PrepScreen />)
const block = getByRole("elm-pad")
//now I want to access props block basically to do this
block.handleGeneratedPoints(4,4,4)
but here, I cant access any of its props