vazco / uniforms

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

Migrated form and error components tests to @testing-library/react. #1255

Closed radekmie closed 1 year ago

radekmie commented 1 year ago

In this pull request, I migrated all *Form, ErrorField, and ErrorsField tests to our new testing suites. I also cleaned up a little the existing setup, e.g., used toHaveClass helpers.

codecov[bot] commented 1 year ago

Codecov Report

Merging #1255 (d010b4f) into master (1353ab3) will not change coverage. The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master    #1255   +/-   ##
=======================================
  Coverage   98.41%   98.41%           
=======================================
  Files         231      231           
  Lines        3797     3797           
  Branches      989      989           
=======================================
  Hits         3737     3737           
  Misses          2        2           
  Partials       58       58           
Impacted Files Coverage Δ
packages/uniforms-bootstrap3/src/ErrorField.tsx 100.00% <100.00%> (ø)
packages/uniforms-bootstrap4/src/ErrorField.tsx 100.00% <100.00%> (ø)
packages/uniforms-bootstrap5/src/ErrorField.tsx 100.00% <100.00%> (ø)
packages/uniforms-semantic/src/ErrorField.tsx 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.