(width: number = 700)
| 17 | * mobile rendering. |
| 18 | */ |
| 19 | export function simulateMobile(width: number = 700): void { |
| 20 | jest |
| 21 | .spyOn(window.screen, 'width', 'get') |
| 22 | .mockImplementation(() => Math.min(Math.max(width, 0), 700)); |
| 23 | } |
| 24 | |
| 25 | /** |
| 26 | * Mocks screen width to simulate standard desktop experience. |
no outgoing calls
no test coverage detected