Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(server): EAS Simulator device hosts #21844

Mergedjuliusmarmingemerged 31 commits intodevice/expo-access fromrefs/pull/21844/headmerged by juliusmarminge View on GitHub

Showing 20 changed files with 62 additions and 9 deletions (loading 17).

x
0 of 20 viewed, 20 left
5 additions and 2 deletionsapps/server/src/device/AgentDeviceTarget.test.tsModified
View file
@@ -94,7 +94,6 @@
yield* writeAgentDeviceConfig(file, {
baseUrl: `http://127.0.0.1:${1000 + index}`,
token: `token-${index}`,
- entryPath,
});
const invoke = (file: string) =>
exec(
@@ -117,10 +116,14 @@
yield* writeAgentDeviceConfig(files[0]!, {
baseUrl: "http://127.0.0.1:2000",
token: "new",
- entryPath,
});
expect((yield* Effect.promise(() => invoke(files[0]!))).daemonAuthToken).toBe("new");
expect(yield* fs.readFileString(files[1]!)).toBe(second);
+ // Hosts with a daemon per device get a file per device, apart from the host's own.
+ const perDevice = yield* Effect.forEach(["udid-1", "udid-2"], (device) =>
+ agentDeviceConfigPath(dir, "eas", path, device),
+ );
+ expect(new Set([...perDevice, yield* agentDeviceConfigPath(dir, "eas", path)]).size).toBe(3);
expect(yield* agentDeviceSession("thread", "mini", "same-id")).not.toBe(
yield* agentDeviceSession("thread", "android", "same-id"),
15 additions and 5 deletionsapps/server/src/device/AgentDeviceTarget.tsModified
View file
@@ -5,7 +5,7 @@