vazco / uniforms

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

Migrated `RadioField` tests to @testing-library/react #1258

Closed ErnestTeluk closed 1 year ago

ErnestTeluk commented 1 year ago

Rewrite RadioField tests to @testing library/react. Also added a helper to antd to support data-* attributes.

codecov[bot] commented 1 year ago

Codecov Report

Merging #1258 (0a29497) into master (e046d87) will decrease coverage by 0.16%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #1258      +/-   ##
==========================================
- Coverage   97.63%   97.48%   -0.16%     
==========================================
  Files         231      231              
  Lines        3812     3821       +9     
  Branches     1028     1031       +3     
==========================================
+ Hits         3722     3725       +3     
  Misses          4        4              
- Partials       86       92       +6     
Impacted Files Coverage Δ
packages/uniforms-antd/src/RadioField.tsx 83.33% <100.00%> (+3.33%) :arrow_up:
packages/uniforms-material/src/RadioField.tsx 80.76% <100.00%> (-10.54%) :arrow_down:
packages/uniforms-mui/src/RadioField.tsx 91.30% <100.00%> (+1.30%) :arrow_up:

... and 4 files with indirect coverage changes