(query = '')
| 78 | } |
| 79 | |
| 80 | async function getDeadCode(query = ''): Promise<any> { |
| 81 | const res = await request(`/api/deadcode${query}`); |
| 82 | expect(res.type).toBe('application/json; charset=utf-8'); |
| 83 | expect(res.status).toBe(200); |
| 84 | return JSON.parse(res.body); |
| 85 | } |
| 86 | |
| 87 | const names = (report: { entries: Array<{ node: { name: string } }> }): string[] => |
| 88 | report.entries.map((entry) => entry.node.name); |
no test coverage detected