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 #408

shipped production is serving it opened this has it

Landed in pull #435 · run

opened this

test/prompts.test.ts (from #330) is red on its own, on main at bc947db: bun test ./test/prompts.test.ts gives 17 pass, 4 fail:

  • a token older than fifty days is refreshed, and the new one is what runs from then on: no refresh call is made before the reel call
  • the settings page: the card, the steps, the doors: the page lacks refreshes it again around 2027-01-09
  • the API removes, and says so once
  • a tell nobody can take is said honestly: opened, not told

The last two probably fail because of the first. The test's story says the token was "pasted 2026-09-28", and it ticks to 2026-11-20, "fifty-three days on". The refresh never happens, so the token's age is probably counted from a moment the test's clock does not control (the real date, 2026-10-02 when measured, is under fifty days before 2026-11-20). If so, the file was green when it landed and went red as the calendar moved. It was never in the gate, so nothing noticed.

#261 leaves this file out of the gate (EXCLUDED in scripts/gate.ts) and points the row at this issue. Done looks like: the four tests pass whatever today's date is, and the pull that fixes them deletes the test/prompts.test.ts row from EXCLUDED so the file is back in the gate.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs