Automatically reconnect single ADB head unit
This commit is contained in:
@@ -11,8 +11,8 @@ describe("ADB configuration", () => {
|
||||
});
|
||||
});
|
||||
|
||||
it("requires a constrained serial when enabled", () => {
|
||||
expect(() => loadConfig({ NODE_ENV: "test", ADB_ENABLED: "true" })).toThrow("ADB_SERIAL is required");
|
||||
it("supports automatic discovery or a constrained pinned serial when enabled", () => {
|
||||
expect(loadConfig({ NODE_ENV: "test", ADB_ENABLED: "true" }).adb).toMatchObject({ enabled: true, serial: null });
|
||||
expect(() =>
|
||||
loadConfig({ NODE_ENV: "test", ADB_ENABLED: "true", ADB_SERIAL: "serial; shell command" })
|
||||
).toThrow();
|
||||
|
||||
Reference in New Issue
Block a user