nteract / data-explorer

The Data Explorer is nteract's automatic visualization tool.
https://data-explorer.nteract.io/
BSD 3-Clause "New" or "Revised" License
103 stars 12 forks source link

Testing: Unit tests for individual components #67

Open hydrosquall opened 3 years ago

hydrosquall commented 3 years ago

Presently, only the root DataExplorer is tested ( see https://github.com/nteract/data-explorer/blob/main/__tests__/index.spec.tsx ).

It will be easier to catch / guard against component specific issues components below the level of the root DataExplorer if we tested specific visuals / components (Plot Picker, etc) individually.

Based on recent bugs, I think it would be valuable to implement basic tests for

This exercise will also help with writing component specific documentation.

Once this is done in a basic form for a few components, we'll have a good pattern in place that should be easy for new/first time contributors to mimic/add to.