Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/vitest-dev/vitest. Next generation testing framework powered by Vite. vitest.dev
Something went wrong. Try again.
12345678910111213import { act, renderHook } from '@testing-library/preact'import { useCount } from './useCount.js'
describe('useCount hook', () => { it('should increment', () => { const { result } = renderHook(() => useCount()) act(() => { result.current.inc() }) expect(result.current.count).toBe(1) })})