data: publish October 7 new cards at 11 KST
Publish GitHub Pages output / publish (push) Canceled after 41s

This commit is contained in:
2026-10-07 11:09:37 +09:00
parent dee04cb357
commit 430483c289
391 changed files with 3550 additions and 18 deletions
+11 -2
View File
@@ -35,9 +35,18 @@ test('every captured table verifies, and unsupported locales cannot use external
for (const name of Object.keys(source.tables)) rows += JSON.parse(readGameDbText(source, name + '.json')).length;
assert.ok(rows > 0);
assert.throws(() => prepareGameDbSource('eng'), /no external fallback/);
});
test('calculator data matches the applied snapshot while captured updates may await publication', () => {
const applied = openGameDb(JSON.parse(readFileSync(new URL('../data/game-db/applied.json', import.meta.url))));
const cards = JSON.parse(readFileSync(new URL('../src/lib/data/cards-summary.json', import.meta.url)));
assert.equal(cards.masterDataVersion, source.masterDataVersion);
assert.equal(cards.cards.length, JSON.parse(readGameDbText(source, 'Card.json')).length);
assert.equal(cards.masterDataVersion, applied.masterDataVersion);
const appliedCards = JSON.parse(readGameDbText(applied, 'Card.json'));
assert.deepEqual(cards.cards.map(card => card.id).sort(), appliedCards.map(row => row.data.id).sort());
for (const name of ['boards-summary', 'memory-summary']) {
const summary = JSON.parse(readFileSync(new URL(`../src/lib/data/${name}.json`, import.meta.url)));
assert.equal(summary.masterDataVersion, applied.masterDataVersion);
}
});
// Independent game assets pin the two corrections to the old community reference table.