octopusthink / nautilus

Inclusive, open-source design system and React component library.
https://nautilus.octopusthink.com
MIT License
2 stars 0 forks source link

Use test.each for the components export test #211

Open tofumatt opened 4 years ago

tofumatt commented 4 years ago

The error messaging in the existing components export test (https://github.com/octopusthink/nautilus/blob/b9f1fb3fdab9dbb8e36126b49bb717117e5e2f10/src/index.test.js#L38-L42) doesn't give very clear errors, I suspect because we're looping through it with forEach rather than test.each.

We should migrate to Jest's test.each to see if that improves the error messaging here.