()
| 48 | it('should throw', async () => { |
| 49 | const fn = jest.fn() |
| 50 | const ErrorDisplay = () => { |
| 51 | try { |
| 52 | //@ts-expect-error |
| 53 | useStore(undefined) |
| 54 | } catch (error) { |
| 55 | fn((error as any).message) |
| 56 | } |
| 57 | return <span>Store text</span> |
| 58 | } |
| 59 | |
| 60 | await render(<ErrorDisplay />) |
| 61 | expect(argumentHistory(fn)).toMatchInlineSnapshot(` |