feat: add integration tests for initialization flow

- Implemented end-to-end integration tests covering database reset, bootstrap admin creation, demo user provisioning, scenario installation, and general creation.
- Added support for deterministic seeding and auto admin general creation.
- Created a new package for integration tests with necessary configurations and scripts.
- Updated various modules to support new features, including admin user handling and scenario seeding.
- Enhanced error handling and validation in the join and orchestrator modules.
This commit is contained in:
2026-01-18 06:32:19 +00:00
parent 1b7423e1f6
commit a9ddffa97c
15 changed files with 997 additions and 8 deletions
+31
View File
@@ -215,6 +215,9 @@ importers:
'@sammo-ts/infra':
specifier: workspace:*
version: link:../../packages/infra
'@sammo-ts/logic':
specifier: workspace:*
version: link:../../packages/logic
'@trpc/server':
specifier: ^11.8.1
version: 11.8.1(typescript@5.9.3)
@@ -394,6 +397,34 @@ importers:
tools/build-scripts: {}
tools/integration-tests:
dependencies:
'@sammo-ts/common':
specifier: workspace:*
version: link:../../packages/common
'@sammo-ts/game-api':
specifier: workspace:*
version: link:../../app/game-api
'@sammo-ts/game-engine':
specifier: workspace:*
version: link:../../app/game-engine
'@sammo-ts/gateway-api':
specifier: workspace:*
version: link:../../app/gateway-api
'@sammo-ts/infra':
specifier: workspace:*
version: link:../../packages/infra
'@trpc/client':
specifier: ^11.8.1
version: 11.8.1(@trpc/server@11.8.1(typescript@5.9.3))(typescript@5.9.3)
devDependencies:
vite-tsconfig-paths:
specifier: ^6.0.3
version: 6.0.3(typescript@5.9.3)(vite@7.3.1(@types/node@25.0.3)(jiti@2.6.1)(lightningcss@1.30.2))
vitest:
specifier: ^4.0.16
version: 4.0.16(@types/node@25.0.3)(jiti@2.6.1)(lightningcss@1.30.2)
packages:
'@babel/generator@7.28.5':