(reduced: () => boolean)
| 22 | }; |
| 23 | |
| 24 | const mockMatchMedia = (reduced: () => boolean) => { |
| 25 | window.matchMedia = jest.fn().mockImplementation((query: string) => ({ |
| 26 | matches: query.includes('reduced-motion') ? reduced() : true, |
| 27 | addEventListener: jest.fn(), |
| 28 | removeEventListener: jest.fn(), |
| 29 | })); |
| 30 | }; |
| 31 | |
| 32 | const ghost = () => document.querySelector('.shell-ghost'); |
| 33 |
no test coverage detected