mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
Disable server components and server actions SWC transform when it's running jest. You can only do basic DOM testing like what we described in #54891 instead the server action itself. Closes #53065 Closes NEXT-1473
10 lines
157 B
React
10 lines
157 B
React
import { action } from './action'
|
|
|
|
export default function Page() {
|
|
return (
|
|
<button data-testid="log" onClick={action}>
|
|
log
|
|
</button>
|
|
)
|
|
}
|