React |Testing in React | Question 7

Last Updated :
Discuss
Comments

Which Jest method is used to create a snapshot of a React component?

toMatchSnapshot()

toCreateSnapshot()

createSnapshot()

matchSnapshot()

Share your thoughts in the comments