If I have a component like this
import React from "react"; const GettingStarted = ({ object }) => <Button onPress={() => object.next()} />;
How would you test with jest that object.next() gets called inside the component?
object.next()
Aucun commentaire:
Enregistrer un commentaire