tomwayson / esri-loader-hooks

Custom React hooks for using the ArcGIS API for JavaScript with esri-loader.

Home Page:https://esri-loader-hooks.netlify.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add meaningful tests

tomwayson opened this issue · comments

Probably should try react-hooks-testing-library.

If that doesn't work, looks like the best approach is to have the tests create a component that uses the hooks and then do a rendering test on the component with react-testing-library.

In either case will want to mock either the functions in utils/arcgis or esriLoader.loadModules itself.