Skip to content

Commit 5da6814

Browse files
committed
test: update schema key assertions to include suppressWarnings
1 parent d2a2f8e commit 5da6814

8 files changed

Lines changed: 8 additions & 7 deletions

File tree

src/mcp/tools/device/__tests__/build_device.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ describe('build_device plugin', () => {
3737
expect(schema.safeParse({ projectPath: '/path/to/MyProject.xcodeproj' }).success).toBe(false);
3838

3939
const schemaKeys = Object.keys(buildDevice.schema).sort();
40-
expect(schemaKeys).toEqual(['derivedDataPath', 'extraArgs', 'preferXcodebuild']);
40+
expect(schemaKeys).toEqual(['derivedDataPath', 'extraArgs', 'preferXcodebuild', 'suppressWarnings']);
4141
});
4242
});
4343

src/mcp/tools/device/__tests__/test_device.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ describe('test_device plugin', () => {
5252
'extraArgs',
5353
'platform',
5454
'preferXcodebuild',
55+
'suppressWarnings',
5556
'testRunnerEnv',
5657
]);
5758
});

src/mcp/tools/macos/__tests__/build_macos.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ describe('build_macos plugin', () => {
4646
expect(schema.safeParse({ preferXcodebuild: 'yes' }).success).toBe(false);
4747

4848
const schemaKeys = Object.keys(buildMacOS.schema).sort();
49-
expect(schemaKeys).toEqual(['derivedDataPath', 'extraArgs', 'preferXcodebuild'].sort());
49+
expect(schemaKeys).toEqual(['derivedDataPath', 'extraArgs', 'preferXcodebuild', 'suppressWarnings'].sort());
5050
});
5151
});
5252

src/mcp/tools/macos/__tests__/build_run_macos.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ describe('build_run_macos', () => {
3939
expect(schema.safeParse({ preferXcodebuild: 'yes' }).success).toBe(false);
4040

4141
const schemaKeys = Object.keys(tool.schema).sort();
42-
expect(schemaKeys).toEqual(['derivedDataPath', 'extraArgs', 'preferXcodebuild'].sort());
42+
expect(schemaKeys).toEqual(['derivedDataPath', 'extraArgs', 'preferXcodebuild', 'suppressWarnings'].sort());
4343
});
4444
});
4545

src/mcp/tools/macos/__tests__/test_macos.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ describe('test_macos plugin (unified)', () => {
4747

4848
const schemaKeys = Object.keys(testMacos.schema).sort();
4949
expect(schemaKeys).toEqual(
50-
['derivedDataPath', 'extraArgs', 'preferXcodebuild', 'testRunnerEnv'].sort(),
50+
['derivedDataPath', 'extraArgs', 'preferXcodebuild', 'suppressWarnings', 'testRunnerEnv'].sort(),
5151
);
5252
});
5353
});

src/mcp/tools/simulator/__tests__/build_run_sim.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ describe('build_run_sim tool', () => {
4545
expect(schema.safeParse({ preferXcodebuild: 'yes' }).success).toBe(false);
4646

4747
const schemaKeys = Object.keys(buildRunSim.schema).sort();
48-
expect(schemaKeys).toEqual(['derivedDataPath', 'extraArgs', 'preferXcodebuild'].sort());
48+
expect(schemaKeys).toEqual(['derivedDataPath', 'extraArgs', 'preferXcodebuild', 'suppressWarnings'].sort());
4949
expect(schemaKeys).not.toContain('scheme');
5050
expect(schemaKeys).not.toContain('simulatorName');
5151
expect(schemaKeys).not.toContain('projectPath');

src/mcp/tools/simulator/__tests__/test_sim.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ describe('test_sim tool', () => {
4646

4747
const schemaKeys = Object.keys(testSim.schema).sort();
4848
expect(schemaKeys).toEqual(
49-
['derivedDataPath', 'extraArgs', 'preferXcodebuild', 'testRunnerEnv'].sort(),
49+
['derivedDataPath', 'extraArgs', 'preferXcodebuild', 'suppressWarnings', 'testRunnerEnv'].sort(),
5050
);
5151
});
5252
});

src/mcp/tools/utilities/__tests__/clean.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ describe('clean (unified) tool', () => {
2828

2929
const schemaKeys = Object.keys(tool.schema).sort();
3030
expect(schemaKeys).toEqual(
31-
['derivedDataPath', 'extraArgs', 'platform', 'preferXcodebuild'].sort(),
31+
['derivedDataPath', 'extraArgs', 'platform', 'preferXcodebuild', 'suppressWarnings'].sort(),
3232
);
3333
});
3434

0 commit comments

Comments
 (0)