auth-api/tests/test-cases/00start.js
2021-06-23 22:30:45 +02:00

15 lines
429 B
JavaScript

import {} from 'dotenv/config';
import got from 'got';
import test from 'tape';
import setConfig from '../test-helpers/config.js';
test('test-cases/00start.js: Wait for auth API to be ready', async t => {
setConfig({ printConfig: true });
const backendHealthCheck = await got(process.env.AUTH_URL, { retry: 2000 });
t.equal(backendHealthCheck.statusCode, 200, 'Auth API should answer with status code 200');
t.end();
});