fix: drop \__test__\ export from actions/ideas.ts (use-server-only-fns)

Next.js 'use server' files only allow exports of async functions. The
\`export const __test__ = { canTransition }\` line at the bottom of
actions/ideas.ts threw a runtime error on every page load that imported
the file.

Tests already import canTransition directly from lib/idea-status; the
__test__ helper was vestigial. Removed.

Tests: 546/546 still green.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Janpeter Visser 2026-05-04 21:54:10 +02:00
parent 7269e9732d
commit 492b71beb9

View file

@ -686,6 +686,3 @@ async function loadOwnedIdea<S extends IdeaSelect>(
select, select,
}) as Promise<Pick<Idea, S[number]> | null> }) as Promise<Pick<Idea, S[number]> | null>
} }
// Re-export voor zustandshelp tijdens testing — geen runtime-import.
export const __test__ = { canTransition }