Files
marco-trest-test/apps/crud-api/test/app.e2e-spec.ts
T
marco.chan 7923ba1b8d feat: initialize ingest-api with Koa and telemetry handling
- Create ingest-api with Koa framework for handling device telemetry.
- Implement telemetry ingestion with MongoDB, Redis, and PostgreSQL.
- Add API endpoints for telemetry and health checks.
- Set up testing with Vitest for unit and end-to-end tests.
- Configure Prettier and ESLint for code formatting and linting.
- Create Docker Compose setup for PostgreSQL, MongoDB, and Redis services.
- Establish contracts package for shared Zod schemas and TypeScript types.
- Implement React frontend with device status and greeting functionalities.
- Add VS Code setup documentation for onboarding developers.
2026-09-03 10:13:02 +08:00

16 lines
403 B
TypeScript

import request from 'supertest';
import { createApp } from '../src/app.js';
import { createMemoryStores } from '../src/stores.js';
describe('crud-api (e2e)', () => {
const app = createApp(createMemoryStores());
it('GET /greeting', async () => {
await request(app)
.get('/greeting')
.query({ name: 'Marco' })
.expect(200)
.expect({ message: 'Hello, Marco' });
});
});