fix: align release manifest with migration heads
This commit is contained in:
@@ -33,6 +33,15 @@ afterEach(async () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
describe('readReleaseManifest', () => {
|
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 () => {
|
it('accepts a manifest whose schema heads match the selected workspace', async () => {
|
||||||
const workspace = await createWorkspace('20260801000000_gateway', '20260801000000_game');
|
const workspace = await createWorkspace('20260801000000_gateway', '20260801000000_game');
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"formatVersion": 1,
|
"formatVersion": 1,
|
||||||
"controllerProtocol": 1,
|
"controllerProtocol": 1,
|
||||||
"gatewaySchemaHead": "20260801000000_add_release_operations",
|
"gatewaySchemaHead": "20260801000000_add_user_icon_library",
|
||||||
"gameSchemaHead": "20260731001000_add_unification_finalization",
|
"gameSchemaHead": "20260803000000_add_logical_game_clock",
|
||||||
"components": ["gateway-api", "gateway-frontend", "release-controller", "game-api", "game-engine", "game-frontend"]
|
"components": ["gateway-api", "gateway-frontend", "release-controller", "game-api", "game-engine", "game-frontend"]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user