fix(03-10): restore direct replay fixture path

- Register the fixture event and maps through existing data APIs
- Await the synchronous mutation marker before the final snapshot
This commit is contained in:
AncTe committed 2026-09-11 14:00:02 +08:00
1 parent e4e39f7b2b
commit 45e3b1f05d
4 files changed
+74 -136

No files matched your search

+2
View File
@@ -50,6 +50,7 @@ interface IClosedLoopFixture {
readonly route: IReplayArray;
readonly sandbox: IReplaySandbox;
readonly expected: IReplayVerifierExpectedSnapshot;
readonly eventCompletion: Promise<void>;
}
interface IClosedLoopModule {
@@ -107,6 +108,7 @@ function createRuntime(fixture: IClosedLoopFixture): IReplayVerifierRuntime {
sandbox.pausing = true;
sandbox.play();
await waitForEnded(sandbox);
await fixture.eventCompletion;
},
snapshot: () => ({
hero: fixture.state.hero.attribute.toStructured(),