Skip to content

Commit 8941d98

Browse files
committed
Make fields in TestDeviceSchema required
1 parent f48e72d commit 8941d98

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/mcp/tools/apptesting/tests.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,15 @@ import { distribute, Distribution } from "../../../appdistribution/distribution"
55
import { tool } from "../../tool";
66
import { toContent } from "../../util";
77
import { parseIntoStringArray, toAppName } from "../../../appdistribution/options-parser-util";
8-
import { TestDevice } from "../../../appdistribution/types";
98

109
const TestDeviceSchema = z
11-
.custom<TestDevice>()
10+
.object({
11+
model: z.string(),
12+
version: z.string(),
13+
locale: z.string(),
14+
orientation: z.enum(["portrait", "landscape"]),
15+
})
16+
.required()
1217
.describe(
1318
`Device to run automated test on. Can run 'gcloud firebase test android|ios models list' to see available devices.`,
1419
);

0 commit comments

Comments
 (0)