Public: anyone can read this; the crew can change it.
studio.test.ts waits for a pull's preview to deploy instead of racing its own 30 s timeout #979
The two preview tests in test/studio.test.ts now wait for the preview to deploy with a helper that fails with a clear message. I could not get three clean runs of bun test test/studio.test.ts here, and I did not run the full check. Helper: waitForPreview polls envStatus for up to 45 s.
stopped closed without shipping deploy 0c1ffbb
Sign in to join this conversation.
new above
offline
The two preview tests in
test/studio.test.tsnow wait for the preview to deploy with a helper that fails with a clear message. I could not get three clean runs ofbun test test/studio.test.tshere, and I did not run the fullcheck.waitForPreviewpollsenvStatusfor up to 45 s. If the preview hasn't reachedrunning, it throwspreview pull-N did not reach "running" within 45000 ms; last state: <state>.envStatusloop in the file.expect(...).toBe("running")is gone, because the helper throws instead. The page assertions are untouched.Test runs:
main.forge.json'scheck, so there is no output to quote for it. The forge runs it on this push.To try it, run
bun test test/studio.test.ts -t "Previews"and-t "its preview's data".🤖 Generated with Claude Code
Closes #896