Skip to content

Commit 3f77269

Browse files
refactor(overmind): return actual overmind mocked instance
1 parent 021e542 commit 3f77269

File tree

1 file changed

+1
-8
lines changed
  • packages/node_modules/overmind/src

1 file changed

+1
-8
lines changed

packages/node_modules/overmind/src/index.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -127,14 +127,7 @@ export function createOvermindMock<Config extends IConfiguration>(
127127
}
128128
)
129129

130-
return {
131-
actions: mock.actions as any,
132-
effects: mock.effects,
133-
state: mock.state,
134-
onInitialize: (mock as any).onInitialize,
135-
proxyStateTree: (mock as any).proxyStateTree,
136-
eventHub: (mock as any).eventHub,
137-
} as any
130+
return mock as any
138131
}
139132

140133
const hotReloadingCache = {}

0 commit comments

Comments
 (0)