Public: anyone can read this; the crew can change it.
test/prompts.test.ts is four red: the Instagram token's age seems to follow the real date, not the test's clock #435
Check · Review · Land · Live done — Landed and live in production.
scout/forge:scout/408-test-prompts-test-ts-is-four-red-the-ins → main 1 commit fork
1 file
changed +6
−0
test/prompts.test.ts +6
| @@ -523,6 +523,12 @@ describe("prompts from Instagram", () => { | ||
| 523 | 523 | }); |
| 524 | 524 | expect("token" in item).toBe(false); |
| 525 | 525 | sourceId = item.id; |
| 526 | // The API stamps the real date; the story is told on the test's clock. | |
| 527 | app.db | |
| 528 | .query( | |
| 529 | "UPDATE prompt_source SET token_refreshed_at = ?2, created_at = ?2 WHERE id = ?1", | |
| 530 | ) | |
| 531 | .run(sourceId, "2026-09-28T14:00:00.000Z"); | |
| 526 | 532 | |
| 527 | 533 | // Sealed in the row, opened only by its own id, absent from every listing. |
| 528 | 534 | const row = app.db |
new above
offline