perf(test): compact heartbeat session fixture writes

This commit is contained in:
Peter Steinberger
2026-02-22 09:24:08 +00:00
parent 694a9eb6d3
commit 267d2193bf

View File

@@ -21,17 +21,13 @@ export async function seedSessionStore(
): Promise<void> {
await fs.writeFile(
storePath,
JSON.stringify(
{
[sessionKey]: {
sessionId: session.sessionId ?? "sid",
updatedAt: session.updatedAt ?? Date.now(),
...session,
},
JSON.stringify({
[sessionKey]: {
sessionId: session.sessionId ?? "sid",
updatedAt: session.updatedAt ?? Date.now(),
...session,
},
null,
2,
),
}),
);
}