nteract / data-explorer

The Data Explorer is nteract's automatic visualization tool.

Home Page:https://data-explorer.nteract.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Testing: Unit tests for individual components

hydrosquall opened this issue · comments

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

  • Grid (table) - (e.g. for #65 )
  • Scatterplot (e.g. for #23)
  • Other visualization types as topics arise.

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.