072c541e09
OutboxRelay: FOR UPDATE SKIP LOCKED claim, in-process bus publish, PENDING-> PUBLISHED with 30s backoff + idempotent-consumer ledger. GET /v1/threads/:id/ messages (policy-scoped). Replay + read specs green; vitest fileParallelism off (shared DB). End-to-end HTTP smoke verified: idempotent ingest, read-back, 400 on missing key. 19 tests pass. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
22 lines
789 B
TypeScript
22 lines
789 B
TypeScript
import { defineConfig } from 'vitest/config';
|
|
import { fileURLToPath } from 'node:url';
|
|
|
|
const r = (p: string) => fileURLToPath(new URL(p, import.meta.url));
|
|
|
|
export default defineConfig({
|
|
resolve: {
|
|
alias: {
|
|
// Resolve workspace packages to their TS source so tests run without a
|
|
// build step. Production builds still go through tsc/dist.
|
|
'@insignia/iios-contracts': r('./packages/iios-contracts/src/index.ts'),
|
|
'@insignia/iios-testkit': r('./packages/iios-testkit/src/index.ts'),
|
|
},
|
|
},
|
|
test: {
|
|
include: ['packages/**/src/**/*.{test,spec}.ts', 'test/**/*.{test,spec}.ts'],
|
|
// DB-backed specs share one Postgres and truncate tables between tests, so
|
|
// test files must not run in parallel against it.
|
|
fileParallelism: false,
|
|
},
|
|
});
|