Skip to main content

debug-react

Package containing debug tools written in React. As of now it only contains the Exerciser.

Exerciser

Allows you to loop through viewing a number of Products and Catalogues to test them. Used by the test-app.

You use it like this:

<Exerciser
api="{api}"
exerciserState="{exerciserState}"
generateExerciserUrl="{generateExerciserUrl}"
setError="{setError}"
setExerciserState="{setExerciserState}"
/>

Where

  • api is an instance of CatalogueAPI class
  • exerciserState is a set of params for specifying which action and filters
  • generateExerciserUrl will generate a URL to a specific product to run
  • setError is a handler to set errors if they occur
  • setExerciserState is a setter for exerciserState