Deep-audit + build-out across all products to fully-usable state; all typecheck clean. - gitgram-web (99): wire Store feature to real endpoints, close 9 gaps - gitgram-backend (100): close 8 flow gaps, document infra-provisioning items - gitgram-mobile (90): fix API base-URL/path mismatch (404s) + copy proximity components into components/proximity wired to real screens; 15 gaps, +react-native-svg - aitm-core (95): wire natural-language CLI flow end-to-end; 11 gaps - aitm-api (97): fix teams metadata runtime bug; copy a2a-js server/client/grpc into src/a2a and wire A2A route; crates.io package search; 8 gaps - aitm-mcp (100): fix A2A client/server card mismatch; 9 gaps - aitm-website (95): build missing docs routes; 9 gaps Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
41 lines
1.6 KiB
JavaScript
41 lines
1.6 KiB
JavaScript
/**
|
|
* Jest configuration for the END-TO-END suite.
|
|
*
|
|
* Unlike the default jest.config.js (which mocks Prisma, Redis, and external
|
|
* services via tests/setup.ts), this config runs the REAL Express app against
|
|
* a REAL PostgreSQL + Redis. It exercises full user flows over HTTP using
|
|
* supertest, catching cross-service regressions and route-wiring breaks that
|
|
* the mocked unit/integration suite cannot.
|
|
*
|
|
* Required services (provision via docker-compose.test.yml or CI services):
|
|
* - PostgreSQL reachable at DATABASE_URL
|
|
* - Redis reachable at REDIS_URL (optional but recommended for full coverage)
|
|
*
|
|
* Run with: npm run test:e2e
|
|
*/
|
|
module.exports = {
|
|
preset: 'ts-jest',
|
|
testEnvironment: 'node',
|
|
rootDir: '.',
|
|
roots: ['<rootDir>/tests/e2e'],
|
|
testMatch: ['**/*.e2e.test.ts'],
|
|
transform: {
|
|
'^.+\\.ts$': ['ts-jest', { diagnostics: false }],
|
|
},
|
|
// E2E flows touch the network and database — give them room and run serially
|
|
// so suites share a clean, deterministic database state.
|
|
testTimeout: 60000,
|
|
maxWorkers: 1,
|
|
globalSetup: '<rootDir>/tests/e2e/globalSetup.ts',
|
|
globalTeardown: '<rootDir>/tests/e2e/globalTeardown.ts',
|
|
// Runs inside each worker before the app module graph loads.
|
|
setupFiles: ['<rootDir>/tests/e2e/setupEnv.ts'],
|
|
moduleNameMapper: {
|
|
'^@/(.*)$': '<rootDir>/src/$1',
|
|
// @octokit/* ships as native ESM which Jest's CommonJS runtime cannot load.
|
|
// The real GitHub API is never called in E2E (no token configured), so map
|
|
// octokit to a lightweight stub that satisfies the import without ESM.
|
|
'^@octokit/rest$': '<rootDir>/tests/e2e/__stubs__/octokit.ts',
|
|
},
|
|
};
|