Morfi Test Utilities
JSON →morfi-test-utils is a testing utility library specifically designed for forms built with the `morfi` React form library. It provides helpers to simplify the testing of both `morfi` forms and individual `morfi`-connected fields within React components. The library is currently at version 3.0.3 and appears to be actively maintained, with the last major release (v2.0.0) in July 2022. It integrates with `@testing-library/react` and `jest` to offer utilities like mocking form fields, interacting with form values and errors, and asserting field properties and form submissions in an `act`-wrapped manner. Its key differentiator is its tight coupling with `morfi`'s internal structure, providing a more streamlined testing experience compared to generic form testing approaches.
Traffic · last 30 days ↑67% vs prev 7d
top countries 🇺🇸 United States · 🇨🇦 Canada · 🇫🇷 France · 🇩🇪 Germany