feedback1 integrate: version 0.1.1 and CHANGELOG.md
- package.json, package-lock.json and APP_VERSION (title screen, server banner, /healthz) at 0.1.1 - CHANGELOG.md (Simplified Chinese): the player-visible fixes of 0.1.1 by area, the reports checked and found not to be bugs, and 0.1.0; linked from the README's 文档 table; README / DEPLOY name the current version - version.test.js checks the CHANGELOG heading and the README badge
This commit is contained in:
1 parent
c7f49b4895
commit
308444ef29
9 files changed
+96
-11
No files matched your search
@@ -470,7 +470,7 @@ test('user playtest #6 (DESIGN §20): summons, skill triggers, blocking, push fo
|
||||
assert.match(sec(10), /a tap anywhere on the card, its confirm strip included, is the card's tap/);
|
||||
assert.match(sec(18), /Each card shows its full effect text \(§20\.7\)/);
|
||||
// README: the test count stays in the right order of magnitude
|
||||
assert.match(README, /约 28\d0 项/);
|
||||
assert.match(README, /约 31\d0 项/);
|
||||
});
|
||||
|
||||
test('user playtest #6 follow-up: a merge consuming a deployed copy puts the elite on that tile (code + research + META / PLAYING / SIM agree)', () => {
|
||||
|
||||
@@ -22,6 +22,17 @@ test('one release version: package.json, package-lock.json and APP_VERSION', ()
|
||||
assert.equal(pkg.private, true, 'never published to npm');
|
||||
});
|
||||
|
||||
test('CHANGELOG.md opens with the release version, and the README links it', () => {
|
||||
const log = read('CHANGELOG.md');
|
||||
const first = log.match(/^## (\d+\.\d+\.\d+) — (\d{4}-\d{2}-\d{2})/m);
|
||||
assert.ok(first, 'a "## x.y.z — date" heading');
|
||||
assert.equal(first[1], APP_VERSION, 'the newest entry is the current version');
|
||||
assert.match(log, /^## 0\.1\.0 — 2026-10-02/m, 'the first public release stays listed');
|
||||
const readme = read('README.md');
|
||||
assert.match(readme, /\[CHANGELOG\.md\]\(CHANGELOG\.md\)/);
|
||||
assert.match(readme, new RegExp(`badge/version-${APP_VERSION.replace(/\./g, '\\.')}-`), 'the README badge');
|
||||
});
|
||||
|
||||
test('the release version is what players see', () => {
|
||||
assert.match(read('public/js/screens/title.js'), /v\$\{APP_VERSION\}/, 'title screen footer');
|
||||
assert.ok(!/PROTOCOL v1/.test(read('public/js/screens/title.js')), 'no protocol number posing as a version');
|
||||
|
||||
Reference in new issue
Block a user