Enabling react compiler in tests? #45
Unanswered
yepitschunked
asked this question in
General Questions
Replies: 1 comment
-
For library authors we do recommend testing with the compiler on/off. For apps having this setup can be helpful as regression tests especially when you're rolling out a new compiler version. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Are there any recommendations for/against enabling React Compiler in test environments? I can see arguments both ways - React Compiler should be a transparent improvement, so it should not be a factor in tests. Code should not depend on the compiler in order to work properly. On the flip side, enabling the compiler in tests could reveal some edge cases (e.g, the compiler not bailing out when it should).
Beta Was this translation helpful? Give feedback.
All reactions