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:
parent
7269e9732d
commit
492b71beb9
1 changed files with 0 additions and 3 deletions
|
|
@ -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 }
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue