[repo] FabricaRelease: Lint the generated release notes before the page is made; fix escapes in the APK signing test
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user