v0.16.1 — ISS-007 smooth client-side sim clock with per-snapshot re-sync #18

Merged
kamilkrzywda merged 2 commits from feat/smooth-sim-clock into master 2026-09-19 16:27:21 +02:00
Showing only changes of commit 3acf471295 - Show all commits
+1 -1
View File
@@ -119,7 +119,7 @@ test('sim clock ticks smoothly between polls — seconds advance without waiting
const sample = async () => {
const text = ((await clock.textContent()) ?? '').trim();
expect(text, `clock format: ${text}`).toMatch(/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2} UTC$/);
return Date.parse(`${text.replace(' ', 'T')}Z`);
return Date.parse(text.replace(' ', 'T').replace(' UTC', 'Z'));
};
// Three samples ~1.3 s apart real time: at scale 1000 each gap is ≈1300 game seconds, so the