test(atlas): settle the first CI round of the new Atlas tests

Client types: Array.at is past the lib target, typed mocks where a spy is called. Client lint: mock components named so hooks may run in them, state reported from effects instead of written into props, promises voided or awaited. Client tests: class order as passed, month names checked in Japanese whatever the ICU build, mesh vertex counts asserted by shape, the buffer growth case built from many small squares instead of one strip that took 15 s, the shooting star tests driving the sky's own schedule, and reduced motion mocked once so it no longer silences later tests. Server: the hidden-setting cases as it.each (no-await-in-loop), and the presence branches the realtime 100% threshold asks for.
This commit is contained in:
Maurice
2026-11-29 10:42:20 +01:00
parent ab0e6fda8b
commit 96976d3ece
15 changed files with 172 additions and 93 deletions
+2 -1
View File
@@ -229,7 +229,8 @@ export class RealtimeGateway implements OnGatewayInit, OnGatewayConnection, OnGa
* Writes the socket's session as active now, for a tab in front, at most
* once per SESSION_TOUCH_INTERVAL_MS (the same pace the request check keeps).
*/
private async touchSession(socket: TrekWebSocket, now = Date.now()): Promise<void> {
private async touchSession(socket: TrekWebSocket): Promise<void> {
const now = Date.now();
const session = sessionOf(socket);
if (!session || !socketVisible(socket) || socket.readyState !== 1) return;
if (now - (this.touchedAt.get(socket) ?? 0) < SESSION_TOUCH_INTERVAL_MS) return;