Skip to content

Commit e7b7fe7

Browse files
committed
test(migration): narrow seeded rows before transcript checks
1 parent 8253ae2 commit e7b7fe7

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎test/scripts/upgrade-survivor-assertions.test.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// Upgrade Survivor Assertions tests cover upgrade survivor assertions script behavior.
2+
import assert from "node:assert/strict";
23
import { execFileSync, spawnSync } from "node:child_process";
34
import { createHash } from "node:crypto";
45
import { mkdtempSync, mkdirSync, readFileSync, realpathSync, rmSync, writeFileSync } from "node:fs";
@@ -1135,6 +1136,7 @@ process.stdout.write(sessionDir + "\\n");
11351136
]);
11361137

11371138
for (const row of seededRows) {
1139+
assert(row);
11381140
const transcriptPath = join(sessionsDir, `${String(row.sessionId)}.jsonl`);
11391141
expect(row.sessionFile).toBe(transcriptPath);
11401142
expect(JSON.parse(readFileSync(transcriptPath, "utf8")).id).toBe(row.sessionId);

0 commit comments

Comments
 (0)