formix_test 0.1.0 copy "formix_test: ^0.1.0" to clipboard
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 results
    • isInvalid() - Match invalid validation results
    • hasError(error) - Match specific error
    • hasErrorWhere(predicate) - Match error with predicate
    • hasErrorCount(count) - Match error count
    • hasValidValue(value) - Match valid value
  • MockValidator:
    • MockValidator<T, E> - Create mock validators
    • whenValid(values) - Configure valid inputs
    • whenInvalid(values, error) - Configure invalid inputs
  • Test Helpers:
    • testValidator() - Run validator against multiple test cases
    • expectValid() - Assert valid result
    • expectInvalid() - Assert invalid result
0
likes
150
points
113
downloads

Publisher

unverified uploader

Weekly Downloads

Testing utilities for the Formix ecosystem. Includes custom matchers, mock validators, and test helpers for validation testing.

Homepage
Repository (GitHub)
View/report issues

Topics

#validation #testing #matchers #test-utilities #form-validation

Documentation

Documentation
API reference

License

MIT (license)

Dependencies

formix_core, matcher, test

More

Packages that depend on formix_test