import supertest from 'supertest'; import { describe, expect, test } from 'vitest'; import { HEADERS, HEADER_TYPE, HTTP_STATUS } from '@verdaccio/core'; import { initializeServer } from './_helper'; describe('ping', () => { test('should return the reply the ping', async () => { const app = await initializeServer('ping.yaml'); const response = await supertest(app) .get('/-/ping') .set('Accept', HEADERS.JSON) .expect(HEADER_TYPE.CONTENT_TYPE, HEADERS.JSON_CHARSET) .expect(HTTP_STATUS.OK); expect(response.body).toEqual({}); }); });