fix: align release manifest with migration heads

This commit is contained in:
2026-08-05 03:09:10 +00:00
parent 65de2b30a3
commit f09a916c4b
2 changed files with 11 additions and 2 deletions
@@ -33,6 +33,15 @@ afterEach(async () => {
});
describe('readReleaseManifest', () => {
it('keeps the checked-in manifest aligned with the checked-in migration heads', async () => {
const workspaceRoot = path.resolve(import.meta.dirname, '../../..');
await expect(readReleaseManifest(workspaceRoot)).resolves.toMatchObject({
gatewaySchemaHead: '20260801000000_add_user_icon_library',
gameSchemaHead: '20260803000000_add_logical_game_clock',
});
});
it('accepts a manifest whose schema heads match the selected workspace', async () => {
const workspace = await createWorkspace('20260801000000_gateway', '20260801000000_game');
+2 -2
View File
@@ -1,7 +1,7 @@
{
"formatVersion": 1,
"controllerProtocol": 1,
"gatewaySchemaHead": "20260801000000_add_release_operations",
"gameSchemaHead": "20260731001000_add_unification_finalization",
"gatewaySchemaHead": "20260801000000_add_user_icon_library",
"gameSchemaHead": "20260803000000_add_logical_game_clock",
"components": ["gateway-api", "gateway-frontend", "release-controller", "game-api", "game-engine", "game-frontend"]
}