-
Notifications
You must be signed in to change notification settings - Fork 2
Test coverage
The widget-editor is utilizing unit tests for some critical parts of the app, currently, we are having test coverage for our adapters and our state proxy that handles all the routing for our application data.
When it comes to the adapters, there is currently only one first-party, the Resource Watch's adapter. Its tests make sure that all of the public methods that interact and serialize data come back with expected results. They cover methods such as the one that get a dataset, widget or layer, and the serialization we perform in each of them to format the data as the widget-editor expects.
The state proxy handles all the data routing and lets the editor know when to trigger renders. In this case, the tests simply make sure the state proxy updates when it's supposed to.
- Getting started
- User documentation
- Developer documentation