latitudegames/thoth

Component Specs

Opened this issue · 0 comments

We need a component runner for Thoth that allows us to run a single component and make tests. This will enable unit testing for component development and enable a TDD approach to developing individual components.

The spec should allow us to run jest and make assertions about how a component should behave. It should be able to also provide a mock Thoth Interface to spy on worker functions and avoid calling live API endpoints.

The new SpellRunner should make this simpler. It is likely that the runner for specs would have to provide some kind of a node JSON structure. Ways to easily programmatically set up stats into the nodes data may also be required for this.

Sent with GitHawk