Skip to content

Commit 784e721

Browse files
fix(overmind): flush during testing
1 parent 7dbedf1 commit 784e721

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

packages/node_modules/overmind/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ export class Overmind<ThisConfig extends IConfiguration>
318318
nextTick && clearTimeout(nextTick)
319319
nextTick = setTimeout(flushTree, 0)
320320
})
321-
} else if (mode.mode === MODE_DEFAULT) {
321+
} else if (mode.mode === MODE_DEFAULT || mode.mode === MODE_TEST) {
322322
eventHub.on(EventType.OPERATOR_ASYNC, (execution) => {
323323
const flushData = execution.flush(true)
324324
if (this.devtools && flushData.mutations.length) {

0 commit comments

Comments
 (0)