Skip to content

Comments

test: add unit tests for unsetEmptyArray, isWeb, and getValidationModes#12940

Merged
bluebill1049 merged 3 commits intoreact-hook-form:masterfrom
kamja44:test/add-util-tests-unsetEmptyArray-isWeb-getValidationModes
Jul 13, 2025
Merged

test: add unit tests for unsetEmptyArray, isWeb, and getValidationModes#12940
bluebill1049 merged 3 commits intoreact-hook-form:masterfrom
kamja44:test/add-util-tests-unsetEmptyArray-isWeb-getValidationModes

Conversation

@kamja44
Copy link
Contributor

@kamja44 kamja44 commented Jul 6, 2025

Adds unit tests for the following utility functions:

  • unsetEmptyArray: verifies it unsets keys with empty or falsy arrays
  • isWeb: ensures correct environment detection (browser vs. SSR)
  • getValidationModes: checks validation mode flag generation

This PR consolidates test coverage for key utility logic.(#12939, #12938, #12937)

@bluebill1049 bluebill1049 merged commit 7372556 into react-hook-form:master Jul 13, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants