(url: string, testData?: string)
| 42 | }) |
| 43 | |
| 44 | const fetchForTest = async (url: string, testData?: string) => { |
| 45 | return next.fetch(url, { |
| 46 | headers: { |
| 47 | 'Next-Test-Proxy-Port': String(proxyServer.port), |
| 48 | 'Next-Test-Data': testData ?? 'test1', |
| 49 | }, |
| 50 | }) |
| 51 | } |
| 52 | |
| 53 | describe('app router', () => { |
| 54 | it('should fetch real data when Next-Test-* headers are not present', async () => { |
no test coverage detected
searching dependent graphs…