@trackunit/react-test-setup 1.4.5 → 1.4.6

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.
package/index.cjs.js CHANGED
@@ -864,7 +864,6 @@ const setupReactTablePagination = (count) => {
864
864
  jest.mock("@trackunit/react-table-pagination", () => ({
865
865
  ...jest.requireActual("@trackunit/react-table-pagination"),
866
866
  useInfiniteScroll: jest.fn(() => ({
867
- fetchMoreOnBottomReached: jest.fn(),
868
867
  getTotalSize: jest.fn(() => 100),
869
868
  getVirtualItems: () => {
870
869
  const result = [];
@@ -874,6 +873,10 @@ const setupReactTablePagination = (count) => {
874
873
  return result;
875
874
  },
876
875
  measureElement: jest.fn(),
876
+ scrollToOffset: jest.fn(),
877
+ scrollToIndex: jest.fn(),
878
+ scrollOffset: 0,
879
+ isScrolling: false,
877
880
  })),
878
881
  }));
879
882
  };
package/index.esm.js CHANGED
@@ -843,7 +843,6 @@ const setupReactTablePagination = (count) => {
843
843
  jest.mock("@trackunit/react-table-pagination", () => ({
844
844
  ...jest.requireActual("@trackunit/react-table-pagination"),
845
845
  useInfiniteScroll: jest.fn(() => ({
846
- fetchMoreOnBottomReached: jest.fn(),
847
846
  getTotalSize: jest.fn(() => 100),
848
847
  getVirtualItems: () => {
849
848
  const result = [];
@@ -853,6 +852,10 @@ const setupReactTablePagination = (count) => {
853
852
  return result;
854
853
  },
855
854
  measureElement: jest.fn(),
855
+ scrollToOffset: jest.fn(),
856
+ scrollToIndex: jest.fn(),
857
+ scrollOffset: 0,
858
+ isScrolling: false,
856
859
  })),
857
860
  }));
858
861
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@trackunit/react-test-setup",
3
3
  "description": "Test setup utilities for React applications",
4
- "version": "1.4.5",
4
+ "version": "1.4.6",
5
5
  "repository": "https://github.com/Trackunit/manager",
6
6
  "license": "SEE LICENSE IN LICENSE.txt",
7
7
  "engines": {