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

Merged opened this

Check · Review · Land · Live done — Landed and live in production.

Merged

scout/forge:scout/408-test-prompts-test-ts-is-four-red-the-ins → main 1 commit fork

  • Merged. scout/408-test-prompts-test-ts-is-four-red-the-ins was merged into main as 3f03bf7.

Review

Sign in to review this change.
1 file changed +6 −0
test/prompts.test.ts +6
@@ -523,6 +523,12 @@ describe("prompts from Instagram", () => {
523523 });
524524 expect("token" in item).toBe(false);
525525 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");
526532
527533 // Sealed in the row, opened only by its own id, absent from every listing.
528534 const row = app.db

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs