I am using jest.mock
to mock out react-css-modules
for testing my react
components.
However, the styleName
prop still exists in my components and react
complains about Warning: Unknown prop
styleNameon <p> tag
.
Is there any way to solve this in a testing environment?
Aucun commentaire:
Enregistrer un commentaire