mirror of
https://github.com/callstack/react-native-testing-library.git
synced 2026-09-18 23:09:04 +08:00
7 lines
211 B
TypeScript
7 lines
211 B
TypeScript
import { renderHook } from '@testing-library/react-native';
|
|
|
|
test('unmounts with renderHook result', async () => {
|
|
const hookResult = await renderHook(() => ({ value: 42 }));
|
|
await hookResult.unmount();
|
|
});
|