test(improve-setup): sharding configuration, allow accessing cornerstone methods and events in tests, and add types (#4255)
This commit is contained in:
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user