lundi 28 mai 2018

React Jest --coverage ignore

My folder/ project structure for reusable components (i.e. field types) looks like this:

  1. /fields
  2. /fields/text
  3. /fields/radio
  4. /fields/checkbox
  5. /fields/...
  6. /fields/index.jsx (which only reexports each of above for simpler importing purposes)

now when i run jet --coverage i get index.jsx which is just a import/export proxy included into coverage report, is there a way to configure jest runner to ignore "such" files ?

Thanks

Aucun commentaire:

Enregistrer un commentaire