formix_test 0.1.0
formix_test: ^0.1.0 copied to clipboard
Testing utilities for the Formix ecosystem. Includes custom matchers, mock validators, and test helpers for validation testing.
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
0.1.0 - 2026-01-23 #
Added #
- Initial release of
formix_test - Custom Matchers:
isValid()- Match valid validation resultsisInvalid()- Match invalid validation resultshasError(error)- Match specific errorhasErrorWhere(predicate)- Match error with predicatehasErrorCount(count)- Match error counthasValidValue(value)- Match valid value
- MockValidator:
MockValidator<T, E>- Create mock validatorswhenValid(values)- Configure valid inputswhenInvalid(values, error)- Configure invalid inputs
- Test Helpers:
testValidator()- Run validator against multiple test casesexpectValid()- Assert valid resultexpectInvalid()- Assert invalid result