(props)
| 60 | |
| 61 | it('render component using cache', async () => { |
| 62 | function Component(props) { |
| 63 | const cache = useMemoCache(1); |
| 64 | expect(Array.isArray(cache)).toBe(true); |
| 65 | expect(cache.length).toBe(1); |
| 66 | expect(cache[0]).toBe(MemoCacheSentinel); |
| 67 | |
| 68 | return 'Ok'; |
| 69 | } |
| 70 | const root = ReactNoop.createRoot(); |
| 71 | await act(() => { |
| 72 | root.render(<Component />); |
no test coverage detected