Skip to content

Commit 46ffce9

Browse files
committed
add fix
1 parent b75fb35 commit 46ffce9

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

.claude/settings.local.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"permissions": {
3+
"allow": [
4+
"Bash(gh pr view:*)"
5+
],
6+
"deny": [],
7+
"ask": []
8+
}
9+
}

codeceptjs-4.0.0-rc.1.tgz

330 KB
Binary file not shown.

lib/workers.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,9 @@ class Workers extends EventEmitter {
709709
// Hook failures are already reported as test failures by the worker
710710
// Just emit the hook.failed event for listeners
711711
this.emit(event.hook.failed, message.data)
712+
event.dispatcher.emit(event.hook.failed, message.data)
712713
break
714+
713715
}
714716
})
715717

@@ -772,16 +774,20 @@ class Workers extends EventEmitter {
772774
for (const state of states) {
773775
if (state.isFailed) {
774776
this.emit(event.test.failed, deserializeTest(state.data))
777+
event.dispatcher.emit(event.test.failed, deserializeTest(state.data))
775778
} else {
776779
this.emit(event.test.passed, deserializeTest(state.data))
780+
event.dispatcher.emit(event.test.passed, deserializeTest(state.data))
777781
}
778782
}
779783
} else {
780784
// For non-retries (like step failures), emit only the final state
781785
if (lastState.isFailed) {
782786
this.emit(event.test.failed, deserializeTest(lastState.data))
787+
event.dispatcher.emit(event.test.failed, deserializeTest(lastState.data))
783788
} else {
784789
this.emit(event.test.passed, deserializeTest(lastState.data))
790+
event.dispatcher.emit(event.test.passed, deserializeTest(lastState.data))
785791
}
786792
}
787793
}

0 commit comments

Comments
 (0)