vazco / uniforms

A React library for building forms from any schema.
https://uniforms.tools
MIT License
1.95k stars 241 forks source link

Migrated `connectField` tests to @testing-library/react #1301

Closed piotrpospiech closed 7 months ago

piotrpospiech commented 8 months ago

Is part of https://github.com/vazco/uniforms/issues/1130

Main changes compare to enzyme tests:

['Props', labelB, 'Props'], ['', labelB, ''], [labelA, '', labelA], [labelA, 'Schema', labelA], [labelA, labelB, labelA], [labelA, undefined, labelA], [undefined, labelB, labelB],



- changed in the `is able to set another field value` test, tested value from `object` to `string` to have the same type in those two fields
codecov[bot] commented 8 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (1a6ca83) 94.66% compared to head (02d0e22) 94.66%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #1301 +/- ## ======================================= Coverage 94.66% 94.66% ======================================= Files 231 231 Lines 3821 3821 Branches 1029 1029 ======================================= Hits 3617 3617 Misses 82 82 Partials 122 122 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.