From 492b71beb9eef5d60f1f6c7e65ccd9ea7a4233a7 Mon Sep 17 00:00:00 2001 From: Madhura68 Date: Mon, 4 May 2026 21:54:10 +0200 Subject: [PATCH] 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) --- actions/ideas.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/actions/ideas.ts b/actions/ideas.ts index dea31c7..1ae5e47 100644 --- a/actions/ideas.ts +++ b/actions/ideas.ts @@ -686,6 +686,3 @@ async function loadOwnedIdea( select, }) as Promise | null> } - -// Re-export voor zustandshelp tijdens testing — geen runtime-import. -export const __test__ = { canTransition }