test(improve-setup): sharding configuration, allow accessing cornerstone methods and events in tests, and add types (#4255)

This commit is contained in:
Ibrahim authored and GitHub committed 2024-06-25 10:16:51 -04:00
1 parent 2bcdb52db9
commit c9cc372581
21 files changed
+113 -26

No files matched your search

@@ -6,6 +6,8 @@ import SyncGroupServiceType from '../services/SyncGroupService';
import ToolGroupServiceType from '../services/ToolGroupService';
import ViewportActionCornersServiceType from '../services/ViewportActionCornersService/ViewportActionCornersService';
import ColorbarServiceType from '../services/ColorbarService';
import * as cornerstone from '@cornerstonejs/core';
import * as cornerstoneTools from '@cornerstonejs/tools';
declare global {
namespace AppTypes {
@@ -25,5 +27,11 @@ declare global {
viewportActionCornersService?: ViewportActionCornersServiceType;
colorbarService?: ColorbarServiceType;
}
export interface Test {
services?: Services;
cornerstone?: typeof cornerstone;
cornerstoneTools?: typeof cornerstoneTools;
}
}
}