()
| 36 | const { Button } = await import("../../src/components/button"); |
| 37 | |
| 38 | function lastUseRenderCall() { |
| 39 | const lastCall = useRenderCalls[useRenderCalls.length - 1]; |
| 40 | if (!lastCall) { |
| 41 | throw new Error("useRender was not called"); |
| 42 | } |
| 43 | return lastCall; |
| 44 | } |
| 45 | |
| 46 | function lastMergePropsCall() { |
| 47 | const lastCall = mergePropsCalls[mergePropsCalls.length - 1]; |