devtools icon indicating copy to clipboard operation
devtools copied to clipboard

Set up unit tests

Open photodow opened this issue 4 years ago • 2 comments

There are some particular places I feel like unit tests will be super helpful. In particular, catching data structure changes, or token updates, or component renaming from system teams like IBM.com, Carbon, or Security. Basically, add a couple of checks and balances to make sure are reporting tools still deliver accurate results after an update.

photodow avatar Oct 01 '20 14:10 photodow

I can include jest and I don't know react-testing-library for components is ok

dezkareid avatar Oct 28 '20 07:10 dezkareid

@dezkareid I have no strong opinion on the tech stack around this. I think Carbon uses jest, and so it would be nice if we could align more with Carbon as much as possible. I've used a little react-testing-library, but I'm probably more familiar with enzyme. We may also not have to use just one either. It appears like Carbon uses more of enzyme. But I'm open here if you have a better idea! 😄

https://github.com/carbon-design-system/carbon/search?q=enzyme

photodow avatar Oct 28 '20 15:10 photodow