Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: re-render w/ useWhenProviderReady, add tests (#901)
This PR: - brings react-sdk test coverage from 0% to ~95% - adds DOM-based testing (tests based on asserting DOM entity states) - tests for query-style, basic, and detailed evaluation APIs - tests for suspense functionality and re-rendering on context change - tests for some util functions and hooks - `renderHook` tests for non suspending hooks - fixes a bug where `useWhenProviderReady` didn't cause re-render after the provider is ready if suspense wasn't used (leading to an out-of-date return value for provider readiness) ![image](https://github.com/open-feature/js-sdk/assets/25272906/e8ee420f-0167-4048-94e3-53176bd883b9) --------- Signed-off-by: Todd Baert <[email protected]>
- Loading branch information