import request from 'supertest'; import { describe, expect, it } from 'vitest'; import { createApp } from '../src/index'; describe('Express app factory', () => { it('creates an app without opening a listening socket', async () => { const app = createApp(); const response = await request(app).get('/__test_missing'); expect(response.status).toBe(404); }); });