Skip to content

Commit e2b7d82

Browse files
committed
test(hub): provide RPC events in renderer fixtures
1 parent 6591da9 commit e2b7d82

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎packages/hub/src/client/__tests__/renderers.test.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ function createStubSharedState<T>(initial: T): StubSharedState<T> {
3333
function createStubRpc() {
3434
const states = new Map<string, StubSharedState<any>>()
3535
const partial: DeepPartial<DevframeRpcClient> = {
36+
isTrusted: true,
37+
events: createEventEmitter<any>(),
3638
sharedState: {
3739
async get(key: string, options?: { initialValue?: any }) {
3840
if (!states.has(key))

0 commit comments

Comments
 (0)