@7shifts/sous-chef 3.65.0-beta.1 → 3.65.1-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13910,6 +13910,7 @@ function useViewPortIntersectionObserver() {
13910
13910
  * @returns {IsVisibleInViewPortResult}
13911
13911
  */
13912
13912
  function useIsVisibleInViewPort() {
13913
+ var _process;
13913
13914
  const wrapperRef = useRef(null);
13914
13915
  const [isVisible, setIsVisible] = useState(false);
13915
13916
  const {
@@ -13928,8 +13929,9 @@ function useIsVisibleInViewPort() {
13928
13929
  setIsVisible(false);
13929
13930
  wrapperRef.current = target;
13930
13931
  }, [observeElement, unobserveElement]);
13932
+ const isJestEnvironment = typeof process !== 'undefined' && ((_process = process) == null || (_process = _process.env) == null ? void 0 : _process.JEST_WORKER_ID) !== undefined;
13931
13933
  return {
13932
- isVisible,
13934
+ isVisible: isJestEnvironment ? true : isVisible,
13933
13935
  elementRef: handleRefUpdate
13934
13936
  };
13935
13937
  }