dillon1000/react

Commit

More Unit Tests for Refs in Hidden Subtrees (#31404)

## Summary

While fixing ref lifecycles in hidden subtrees in
https://github.com/facebook/react/pull/31379, @rickhanlonii noticed that
we could also add more unit tests for other types of tags to prevent
future regressions during code refactors.

This PR adds more unit tests in the same vein as those added in
https://github.com/facebook/react/pull/31379.

## How did you test this change?

Verified unit tests pass:

```
$ yarn
$ yarn test ReactFreshIntegration-test.js
```
Browse files
Changed paths1 file
First-parent comparison
M packages/react-refresh/src/__tests__/ReactFreshIntegration-test.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…