File tree 1 file changed +3
-3
lines changed
packages/react-reconciler/src
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1248,7 +1248,7 @@ function mountEffect(
1248
1248
) : void {
1249
1249
if ( __DEV__ ) {
1250
1250
// $FlowExpectedError - jest isn't a global, and isn't recognized outside of tests
1251
- if ( 'undefined' !== typeof jest ) {
1251
+ if ( typeof jest !== 'undefined' ) {
1252
1252
warnIfNotCurrentlyActingEffectsInDEV ( currentlyRenderingFiber ) ;
1253
1253
}
1254
1254
}
@@ -1276,7 +1276,7 @@ function updateEffect(
1276
1276
) : void {
1277
1277
if ( __DEV__ ) {
1278
1278
// $FlowExpectedError - jest isn't a global, and isn't recognized outside of tests
1279
- if ( 'undefined' ! == typeof jest ) {
1279
+ if ( typeof jest ! == 'undefined' ) {
1280
1280
warnIfNotCurrentlyActingEffectsInDEV( currentlyRenderingFiber ) ;
1281
1281
}
1282
1282
}
@@ -1771,7 +1771,7 @@ function dispatchAction<S, A>(
1771
1771
}
1772
1772
if ( __DEV__ ) {
1773
1773
// $FlowExpectedError - jest isn't a global, and isn't recognized outside of tests
1774
- if ( 'undefined' !== typeof jest ) {
1774
+ if ( typeof jest !== 'undefined' ) {
1775
1775
warnIfNotScopedWithMatchingAct ( fiber ) ;
1776
1776
warnIfNotCurrentlyActingUpdatesInDev ( fiber ) ;
1777
1777
}
You can’t perform that action at this time.
0 commit comments