Booking Engine

Architecture: Six focused services with the BookingService/SchedulingService overlap resolved by giving SchedulingService exactly one job, the transactional double-booking guard , while BookingService owns the create/reschedule/cancel workflow around it.

59 unit tests, 24 integration tests
This commit is contained in:
Stefan Lazic committed 2026-08-02 18:36:39 +01:00
1 parent 090646fdfd
commit 8b63cc66a9
28 files changed
+4853 -15

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
import { defineConfig } from "vitest/config";
export default defineConfig({
resolve: { tsconfigPaths: true },
test: {
environment: "node",
globals: false,
include: ["**/*.integration.test.ts"],
exclude: ["node_modules/**", ".next/**", "templates/**"],
// Concurrency tests (double-booking prevention) need real, unshared
// DB connections and predictable ordering — run integration test
// files one at a time.
fileParallelism: false,
testTimeout: 20000,
},
});