[repo] FabricaRelease: Lint the generated release notes before the page is made; fix escapes in the APK signing test

This commit is contained in:
2026-11-19 02:11:31 +01:00
parent 0d37f91763
commit 3a6f2ad6ee
5 changed files with 35 additions and 7 deletions
+16 -1
View File
@@ -1,6 +1,7 @@
import { spawnSync } from 'node:child_process';
import { createRequire } from 'node:module';
import { join } from 'node:path';
import { existsSync, mkdirSync, rmSync, writeFileSync } from 'node:fs';
import { dirname, join } from 'node:path';
import { fileURLToPath } from 'node:url';
import { describe, expect, it } from 'vitest';
@@ -26,6 +27,20 @@ describe('lint:copy reads the Aula page', { timeout: 60_000 }, () => {
expect(files).toContain('.fabrica/notes/0.1.0.md');
});
it("a release's generated notes are checked when they are there", () => {
const notes = join(repo, 'target/notes/release-notes.md');
const had = existsSync(notes);
if (!had) {
mkdirSync(dirname(notes), { recursive: true });
writeFileSync(notes, '# notes\n');
}
try {
expect(listed()).toContain('target/notes/release-notes.md');
} finally {
if (!had) rmSync(notes);
}
});
it('the game itself is still checked', () => {
const files = listed();
expect(files).toContain('packages/ui/src/copy/en.ts');