fix(FN-1537): stabilize CI workflows and fix version tests

- Update GitHub Actions workflows to use Node.js 24 (actions/setup-node@v5)
- Add private packages to .changeset/config.json ignore array
- Fix version string tests to read dynamically from package.json
- Add FN-1537 documentation to .fusion/memory.md
This commit is contained in:
gsxdsm
2026-04-10 09:42:51 -07:00
parent 673deced23
commit f5a36596f5
10 changed files with 91 additions and 16 deletions

View File

@@ -34,7 +34,12 @@ describe("getAppVersion", () => {
const version1 = getAppVersion();
const version2 = getAppVersion();
expect(version1).toBe(version2);
expect(version1).toBe("0.1.0");
// Verify cached version matches the actual package version
const testFileDir = dirname(fileURLToPath(import.meta.url));
const coreDir = join(testFileDir, "..");
const pkgPath = join(coreDir, "package.json");
const pkg = JSON.parse(readFileSync(pkgPath, "utf-8"));
expect(version1).toBe(pkg.version);
});
});

View File

@@ -5,6 +5,7 @@ import { join } from "node:path";
import { CentralCore } from "./central-core.js";
import { NodeDiscovery } from "./node-discovery.js";
import { NodeConnection, type ConnectionResult } from "./node-connection.js";
import { getAppVersion } from "./app-version.js";
import * as systemMetrics from "./system-metrics.js";
import type {
RegisteredProject,
@@ -1458,7 +1459,7 @@ describe("CentralCore", () => {
const updated = await central.updateNodeVersionInfo(node.id, versionInfo);
expect(updated.versionInfo?.appVersion).toBe("0.1.0");
expect(updated.versionInfo?.appVersion).toBe(getAppVersion());
});
it("should emit node:version:updated and node:updated events", async () => {