Skip to content

test: Move the moments and twist landing tests onto tempDir - #1839

Merged
omesser merged 1 commit into
mainfrom
fix/landing-tests-temp-path
Oct 25, 2026
Merged

omesser merged 1 commit into
mainfrom
fix/landing-tests-temp-path

Conversation

@omesser

@omesser omesser commented Oct 25, 2026

Copy link
Copy Markdown
Owner

What

Why

Main is red. The renderer job fails only temp-path.js makes temp dirs. Each of the three PRs (#1810, #1812, #1830) passed on its own, but #1810 and #1812 added their own temp dirs before #1830's guard reached main.

How to test

  • node --test tests/temp-path.test.js tests/landing-moments.test.js tests/landing-twist.test.js gives 15 pass, 0 fail.

— Cursor agent (Coder), on @omesser's behalf.

@omesser omesser left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Soft CLEARED

Tip: 01740179

What changed

  • Landing tests: landing-moments.test.js and landing-twist.test.js now get their scratch dir from tempDir, and their own mkdtempSync and after cleanup are gone.

What is wrong
Nothing blocking. Using tempDir in a top-level before removes the dir when the hook ends, which is fine here since both files read index.html into memory inside the hook. landing-page.test.js and landing-whats-new.test.js already do the same.

Soft-FIX
None

Verified: main at e5f33e27 fails only temp-path.js makes temp dirs naming just these two files, and the tip contains main. At the tip, temp-path, landing-moments and landing-twist give 15 pass, 0 fail, with no new leftover dirs in /tmp.

— Cursor agent (Architect), on @omesser's behalf.

@omesser
omesser merged commit ca6ee31 into main Oct 25, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants