feat: add local approval submission drafts

This commit is contained in:
2026-08-19 15:53:47 +00:00
parent 0a7ad6a3b6
commit 5d889d4445
21 changed files with 176 additions and 25 deletions
+14
View File
@@ -0,0 +1,14 @@
import assert from "node:assert/strict";
import { readFileSync } from "node:fs";
import test from "node:test";
import { APPLICATION_VERSION } from "../src/version.js";
test("package, gateway, and bridge share one application version", () => {
const packageMetadata = JSON.parse(readFileSync("package.json", "utf8")) as { version: string };
assert.equal(APPLICATION_VERSION, packageMetadata.version);
for (const path of ["src/server.ts", "src/bridge.ts"]) {
const source = readFileSync(path, "utf8");
assert.match(source, /version: APPLICATION_VERSION/);
assert.doesNotMatch(source, /version: "\d+\.\d+\.\d+(?:-rc\.\d+)?"/);
}
});