balena-supervisor/test/integration/supervisor.spec.ts
Felipe Lalanne 46fa7321c0 Run the built supervisor as part of docker-compose tests
This allows to test that the supervisor build actually runs and opens up the
possibility of running more exhaustive API tests against a working supervisor.

Change-type: patch
2022-11-03 15:45:39 -03:00

11 lines
357 B
TypeScript

import * as request from 'supertest';
const BALENA_SUPERVISOR_ADDRESS =
process.env.BALENA_SUPERVISOR_ADDRESS || 'http://balena-supervisor:48484';
describe('supervisor app', () => {
it('the supervisor app runs and the API responds with a healthy status', async () => {
await request(BALENA_SUPERVISOR_ADDRESS).get('/v1/healthy').expect(200);
});
});