fix(ota): use explicit Expo runtime version

This commit is contained in:
jjbrunton committed 2026-08-30 21:37:28 +01:00
1 parent 02aa6e4a75
commit 267f3c3cf9
6 files changed
+97 -27

No files matched your search

@@ -1,6 +1,9 @@
const configPath = require.resolve("../../app.config");
const appJson = require("../../app.json");
type UpdateConfig = {
version: string;
runtimeVersion: string;
updates: {
codeSigningCertificate?: string;
codeSigningMetadata?: Record<string, string>;
@@ -43,4 +46,11 @@ describe("Expo OTA configuration", () => {
expect(config.updates.codeSigningCertificate).toBeUndefined();
expect(config.updates.codeSigningMetadata).toBeUndefined();
});
it("resolves an explicit runtime version matching the public version", () => {
const config = resolveConfig({ RELEASE_CHANNEL: "production" });
expect(config.runtimeVersion).toBe(appJson.expo.version);
expect(config.runtimeVersion).toBe(config.version);
});
});