diff --git a/src/jsx/dom/hooks/index.test.tsx b/src/jsx/dom/hooks/index.test.tsx index aeeb9996..4ce09a50 100644 --- a/src/jsx/dom/hooks/index.test.tsx +++ b/src/jsx/dom/hooks/index.test.tsx @@ -1,6 +1,6 @@ /** @jsxImportSource ../../ */ import { JSDOM } from 'jsdom' -import { render, useState } from '..' +import { render, useCallback, useState } from '..' import { useActionState, useFormStatus, useOptimistic } from '.' describe('Hooks', () => { @@ -84,14 +84,13 @@ describe('Hooks', () => { } const App = () => { const [, setCount] = useState(0) + const action = useCallback(() => { + setCount((count) => count + 1) + return formPromise + }, []) return ( <> -