update
CI / Lint, types, build, tests (push) Canceled after 0s
CI / Docker images build (push) Canceled after 0s

This commit is contained in:
olehhapuk
2026-12-03 10:53:09 +02:00
parent f8de87955b
commit 98b2e0ce4b
182 changed files with 24134 additions and 288 deletions
+15 -2
View File
@@ -23,8 +23,21 @@ describe('AppController (e2e)', () => {
.expect('Hello World!');
});
it('/me (GET) requires a session', () => {
return request(app.getHttpServer()).get('/me').expect(401);
it('/health (GET)', () => {
return request(app.getHttpServer())
.get('/health')
.expect(200)
.expect({ status: 'ok' });
});
it('/ready (GET) reports the database and Redis', async () => {
const response = await request(app.getHttpServer())
.get('/ready')
.expect(200);
expect(response.body.info).toMatchObject({
database: { status: 'up' },
redis: { status: 'up' },
});
});
afterEach(async () => {