()
| 23 | } |
| 24 | |
| 25 | const mockCreateError = () => { |
| 26 | const createErrorMock = vi.fn((opts: { statusCode: number; message: string }) => opts) |
| 27 | vi.stubGlobal('createError', createErrorMock) |
| 28 | return createErrorMock |
| 29 | } |
| 30 | |
| 31 | describe('convertToFileTree', () => { |
| 32 | it('converts jsDelivr nodes to a sorted tree with directories first', () => { |