vazco / uniforms

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

Migrated `SelectField` AntD tests to @testing-library/react #1312

Closed kestarumper closed 3 months ago

kestarumper commented 4 months ago

I've encountered a lot of problems. Many related to fireEvent.change not working at all. AntD seems to be doing things differently when it comes to the role etc. It also does some virtualization which makes things harder.

Notes

Reference

codecov[bot] commented 4 months ago

Codecov Report

Attention: Patch coverage is 87.50000% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 94.61%. Comparing base (9dec81c) to head (e2aa01a).

Files Patch % Lines
packages/uniforms-antd/src/SelectField.tsx 87.50% 0 Missing and 1 partial :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## select-field-tests #1312 +/- ## =================================================== Coverage 94.60% 94.61% =================================================== Files 231 231 Lines 3821 3823 +2 Branches 1029 1030 +1 =================================================== + Hits 3615 3617 +2 Misses 82 82 Partials 124 124 ```

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