@trackunit/react-vite-test-setup 0.0.207 → 0.0.209

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
@@ -466,6 +466,7 @@ const createMockMapboxMap = () => {
466
466
  addImage: vitest.vi.fn(),
467
467
  getCanvas: vitest.vi.fn(() => ({ style: {} })),
468
468
  getCanvasContainer: vitest.vi.fn(() => document.createElement("div")),
469
+ doubleClickZoom: { enable: vitest.vi.fn(), disable: vitest.vi.fn() },
469
470
  };
470
471
  const triggerEvent = (eventName, event) => {
471
472
  // Fire regular listeners
package/index.esm.js CHANGED
@@ -445,6 +445,7 @@ const createMockMapboxMap = () => {
445
445
  addImage: vi.fn(),
446
446
  getCanvas: vi.fn(() => ({ style: {} })),
447
447
  getCanvasContainer: vi.fn(() => document.createElement("div")),
448
+ doubleClickZoom: { enable: vi.fn(), disable: vi.fn() },
448
449
  };
449
450
  const triggerEvent = (eventName, event) => {
450
451
  // Fire regular listeners
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@trackunit/react-vite-test-setup",
3
3
  "description": "Test setup utilities for React applications",
4
- "version": "0.0.207",
4
+ "version": "0.0.209",
5
5
  "repository": "https://github.com/Trackunit/manager",
6
6
  "license": "SEE LICENSE IN LICENSE.txt",
7
7
  "engines": {
@@ -36,6 +36,10 @@ type MockMapboxMap = {
36
36
  addImage: Mock;
37
37
  getCanvas: Mock;
38
38
  getCanvasContainer: Mock;
39
+ doubleClickZoom: {
40
+ enable: Mock<() => void>;
41
+ disable: Mock<() => void>;
42
+ };
39
43
  };
40
44
  /**
41
45
  * Return type of createMockMapboxMap - provides both the mock map