[limen GEN-organvm-portfolio-test-coverage-0624] Raise test coverage in organvm/portfolio#154
Conversation
limen task GEN-organvm-portfolio-test-coverage-0624
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0dbcee161e
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| afterEach(() => { | ||
| vi.unstubAllGlobals(); | ||
| vi.resetModules(); | ||
| vi.clearAllMocks(); | ||
| document.body.innerHTML = ''; |
There was a problem hiding this comment.
Clean up sketch-loader state between tests
These tests import sketch-loader and call initSketches/reinitPage, which registers a window resize listener and stores p5 instances in module state, but the shared afterEach only resets the module cache and globals. Because vi.resetModules() does not remove event listeners that were already attached to window, later resize tests run handlers left by earlier tests against stale observedContainers, making the suite order-dependent and prone to timer leaks; call the imported teardown()/teardownPage() before resetting modules.
Useful? React with 👍 / 👎.
Autonomous limen dispatch of task
GEN-organvm-portfolio-test-coverage-0624.Find the largest source module in organvm/portfolio with little or no test coverage and add a focused, PASSING test suite for it. Run the repo's own test command and confirm green. No placeholder tests. [auto-generated 2026-06-24 to keep the stream endless]
Produced in an isolated worktree off origin — review before merge.