feat: add simple Express app with /hello endpoint and tests

This commit is contained in:
coaxial
2025-10-23 15:14:23 +02:00
committed by coaxial (aider)
parent 928c1afacd
commit 8bf16b0ac2
5 changed files with 63 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
const request = require('supertest');
const app = require('../../src/server');
describe('GET /hello', () => {
it('should return Hello world', async () => {
const res = await request(app).get('/hello');
expect(res.statusCode).toBe(200);
expect(res.text).toBe('Hello world');
});
});