vendredi 26 février 2021

React Jest/Enzyme - Snapshots created files are too big (thousands of lines)

Everytime I create a snapshot for a specific component, it returns thousands of lines for it (like 80k) because it is showing an attribute called "theme" for a lot of selectors. how can I get rid of this attribute. I don't think it is necessary for me to test things.

Info about the project:

  • React cra
  • Grommet for components
  • JEST/ENZYME for tests

enter image description here

Aucun commentaire:

Enregistrer un commentaire