mirror of
https://github.com/callstack/react-native-testing-library.git
synced 2026-09-18 23:09:04 +08:00
9 lines
210 B
TypeScript
9 lines
210 B
TypeScript
import { renderHook } from '@testing-library/react-native';
|
|
|
|
test('uses renderHook', () => {
|
|
const { result } = renderHook(() => {
|
|
return { value: 42 };
|
|
});
|
|
expect(result.current.value).toBe(42);
|
|
});
|