Skip to content

Commit 97aef0d

Browse files
test(cursor): cover a subagent lint file without its diagnostics list
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 86ee857 commit 97aef0d

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

‎packages/provider-cursor/src/server/adapter.test.ts‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1033,6 +1033,15 @@ describe("CursorAdapterV2", () => {
10331033
readLintsToolCall: { args: {}, result: { success: {} } },
10341034
},
10351035
},
1036+
{
1037+
toolCall: {
1038+
toolCallId: "tool:lints-clean-file",
1039+
readLintsToolCall: {
1040+
args: {},
1041+
result: { success: { fileDiagnostics: [{ path: "src/clean.ts" }] } },
1042+
},
1043+
},
1044+
},
10361045
{
10371046
toolCall: {
10381047
toolCallId: "tool:mcp",
@@ -1184,6 +1193,7 @@ describe("CursorAdapterV2", () => {
11841193
results: [{ fileName: path.join(workspace, "src", "index.ts") }],
11851194
},
11861195
{ status: "completed", pattern: "", results: [] },
1196+
{ status: "completed", pattern: "", results: [] },
11871197
{
11881198
status: "completed",
11891199
toolName: "mcp__docs__lookup",

0 commit comments

Comments
 (0)