diff --git a/extensions/file-transfer/src/node-host/file-write.test.ts b/extensions/file-transfer/src/node-host/file-write.test.ts index 448244fffe3..7dec22641b3 100644 --- a/extensions/file-transfer/src/node-host/file-write.test.ts +++ b/extensions/file-transfer/src/node-host/file-write.test.ts @@ -77,7 +77,7 @@ describe("handleFileWrite — happy path", () => { const entries = await fs.readdir(tmpRoot); const tmpFiles = entries.filter((n) => n.includes(".tmp")); - expect(tmpFiles).toEqual([]); + expect(tmpFiles).toStrictEqual([]); }); }); diff --git a/extensions/openshell/src/openshell-core.test.ts b/extensions/openshell/src/openshell-core.test.ts index b8de2525c9f..b79c31e1334 100644 --- a/extensions/openshell/src/openshell-core.test.ts +++ b/extensions/openshell/src/openshell-core.test.ts @@ -276,7 +276,7 @@ describe("openshell fs bridges", () => { await expect(fs.stat(path.join(outsideDir, "escape.txt"))).rejects.toMatchObject({ code: "ENOENT", }); - await expect(fs.readdir(outsideDir)).resolves.toEqual([]); + await expect(fs.readdir(outsideDir)).resolves.toStrictEqual([]); expect(backend.syncLocalPathToRemote).not.toHaveBeenCalled(); }); diff --git a/src/infra/errors.test.ts b/src/infra/errors.test.ts index bc3703a2a44..4f7a6550d25 100644 --- a/src/infra/errors.test.ts +++ b/src/infra/errors.test.ts @@ -50,7 +50,7 @@ describe("error helpers", () => { ...((current as { errors?: unknown[] }).errors ?? []), ]), ).toEqual([root, child, leaf]); - expect(collectErrorGraphCandidates(null)).toEqual([]); + expect(collectErrorGraphCandidates(null)).toStrictEqual([]); }); it("matches errno-shaped errors by code", () => { diff --git a/src/infra/heartbeat-runner.scheduler.test.ts b/src/infra/heartbeat-runner.scheduler.test.ts index e3728bb1f1b..8a92cf2e358 100644 --- a/src/infra/heartbeat-runner.scheduler.test.ts +++ b/src/infra/heartbeat-runner.scheduler.test.ts @@ -356,7 +356,7 @@ describe("startHeartbeatRunner", () => { const scheduledSlotCallsBeforeInterval = callTimes.filter( (time) => time >= firstDueMs + intervalMs, ); - expect(scheduledSlotCallsBeforeInterval).toEqual([]); + expect(scheduledSlotCallsBeforeInterval).toStrictEqual([]); // The next interval tick at the next scheduled slot should still fire — // the retries must not push the phase out by multiple intervals. @@ -508,7 +508,7 @@ describe("startHeartbeatRunner", () => { }, }); const financeCalls = runSpy.mock.calls.filter((call) => call[0]?.agentId === "finance"); - expect(financeCalls).toEqual([]); + expect(financeCalls).toStrictEqual([]); runner.stop(); }); diff --git a/src/infra/path-prepend.test.ts b/src/infra/path-prepend.test.ts index b464d601182..a02a80cb180 100644 --- a/src/infra/path-prepend.test.ts +++ b/src/infra/path-prepend.test.ts @@ -25,7 +25,7 @@ describe("path prepend helpers", () => { expect( normalizePathPrepend([" /custom/bin ", "", " /custom/bin ", "/opt/bin", 42 as any]), ).toEqual(["/custom/bin", "/opt/bin"]); - expect(normalizePathPrepend()).toEqual([]); + expect(normalizePathPrepend()).toStrictEqual([]); }); it.each([ diff --git a/src/infra/provider-usage.auth.plugin.test.ts b/src/infra/provider-usage.auth.plugin.test.ts index 4cc79ee4235..97e47626b81 100644 --- a/src/infra/provider-usage.auth.plugin.test.ts +++ b/src/infra/provider-usage.auth.plugin.test.ts @@ -95,7 +95,7 @@ describe("resolveProviderAuths plugin boundary", () => { skipPluginAuthWithoutCredentialSource: true, env: { HOME: homeDir }, }), - ).resolves.toEqual([]); + ).resolves.toStrictEqual([]); }); expect(resolveProviderUsageAuthWithPluginMock).not.toHaveBeenCalled(); @@ -304,7 +304,7 @@ describe("resolveProviderAuths plugin boundary", () => { skipPluginAuthWithoutCredentialSource: true, env: { HOME: homeDir }, }), - ).resolves.toEqual([]); + ).resolves.toStrictEqual([]); }); expect(ensureAuthProfileStoreWithoutExternalProfilesMock).toHaveBeenCalledTimes(1); diff --git a/src/node-host/invoke-system-run.test.ts b/src/node-host/invoke-system-run.test.ts index 5a98382c1c3..5bb7d1f245d 100644 --- a/src/node-host/invoke-system-run.test.ts +++ b/src/node-host/invoke-system-run.test.ts @@ -1323,7 +1323,7 @@ describe("handleSystemRunInvoke mac app exec host routing", () => { expect(runCommand).toHaveBeenCalledTimes(1); expectInvokeOk(sendInvokeResult, { payloadContains: "inline-eval-ok" }); - expect(loadExecApprovals().agents?.main?.allowlist ?? []).toEqual([]); + expect(loadExecApprovals().agents?.main?.allowlist ?? []).toStrictEqual([]); }, }); } finally { @@ -1427,7 +1427,7 @@ describe("handleSystemRunInvoke mac app exec host routing", () => { expect(runCommand).toHaveBeenCalledTimes(1); expectInvokeOk(sendInvokeResult, { payloadContains: "inline-eval-ok" }); - expect(loadExecApprovals().agents?.main?.allowlist ?? []).toEqual([]); + expect(loadExecApprovals().agents?.main?.allowlist ?? []).toStrictEqual([]); }, }); } finally { diff --git a/src/tui/osc8-hyperlinks.test.ts b/src/tui/osc8-hyperlinks.test.ts index eefb631781f..08450c46b68 100644 --- a/src/tui/osc8-hyperlinks.test.ts +++ b/src/tui/osc8-hyperlinks.test.ts @@ -51,7 +51,7 @@ describe("extractUrls", () => { }); it("returns empty array for text without URLs", () => { - expect(extractUrls("No links here")).toEqual([]); + expect(extractUrls("No links here")).toStrictEqual([]); }); it("handles URLs with query params and fragments", () => {