diff --git a/e2e-tests/gc.spec.ts b/e2e-tests/gc.spec.ts new file mode 100644 index 0000000..a9424b3 --- /dev/null +++ b/e2e-tests/gc.spec.ts @@ -0,0 +1,10 @@ +import { test, expect } from '@playwright/test' +import { PORT } from '../src/constants.js' + +test('POST /api/v0/repo/gc', async ({ page }) => { + const result = await page.request.post(`http://localhost:${PORT}/api/v0/repo/gc`) + expect(result?.status()).toBe(200) + + const maybeContent = await result?.text() + expect(maybeContent).toEqual('OK') +})