diff --git a/test/scripts/barnacle-auto-response.test.ts b/test/scripts/barnacle-auto-response.test.ts index bfdea763493..7748acb0c5c 100644 --- a/test/scripts/barnacle-auto-response.test.ts +++ b/test/scripts/barnacle-auto-response.test.ts @@ -403,10 +403,10 @@ describe("barnacle-auto-response", () => { }, }); - expect(calls.addLabels).toEqual([]); - expect(calls.createComment).toEqual([]); - expect(calls.removeLabel).toEqual([]); - expect(calls.update).toEqual([]); + expect(calls.addLabels).toStrictEqual([]); + expect(calls.createComment).toStrictEqual([]); + expect(calls.removeLabel).toStrictEqual([]); + expect(calls.update).toStrictEqual([]); }); it("leaves stale Barnacle labels alone on maintainer-authored PRs", async () => { @@ -433,10 +433,10 @@ describe("barnacle-auto-response", () => { }, }); - expect(calls.addLabels).toEqual([]); - expect(calls.createComment).toEqual([]); - expect(calls.removeLabel).toEqual([]); - expect(calls.update).toEqual([]); + expect(calls.addLabels).toStrictEqual([]); + expect(calls.createComment).toStrictEqual([]); + expect(calls.removeLabel).toStrictEqual([]); + expect(calls.update).toStrictEqual([]); }); it("does not mutate maintainer-authored issues", async () => { @@ -456,9 +456,9 @@ describe("barnacle-auto-response", () => { }, }); - expect(calls.addLabels).toEqual([]); - expect(calls.createComment).toEqual([]); - expect(calls.update).toEqual([]); + expect(calls.addLabels).toStrictEqual([]); + expect(calls.createComment).toStrictEqual([]); + expect(calls.update).toStrictEqual([]); }); it("does not action close labels on maintainer-authored issues", async () => { @@ -485,8 +485,8 @@ describe("barnacle-auto-response", () => { }, }); - expect(calls.createComment).toEqual([]); - expect(calls.update).toEqual([]); + expect(calls.createComment).toStrictEqual([]); + expect(calls.update).toStrictEqual([]); }); it("closes issues tagged as false positives", async () => { @@ -541,8 +541,8 @@ describe("barnacle-auto-response", () => { }, }); - expect(calls.createComment).toEqual([]); - expect(calls.update).toEqual([]); + expect(calls.createComment).toStrictEqual([]); + expect(calls.update).toStrictEqual([]); }); it("does not close automation PRs for the active PR limit", async () => { @@ -606,8 +606,8 @@ describe("barnacle-auto-response", () => { }); expect(calls.removeLabel).toContainEqual(expect.objectContaining({ name: "r: too-many-prs" })); - expect(calls.createComment).toEqual([]); - expect(calls.update).toEqual([]); + expect(calls.createComment).toStrictEqual([]); + expect(calls.update).toStrictEqual([]); }); it("does not close GitHub App-authored PRs when stale PR-limit label removal returns 404", async () => { @@ -632,8 +632,8 @@ describe("barnacle-auto-response", () => { }); expect(calls.removeLabel).toContainEqual(expect.objectContaining({ name: "r: too-many-prs" })); - expect(calls.createComment).toEqual([]); - expect(calls.update).toEqual([]); + expect(calls.createComment).toStrictEqual([]); + expect(calls.update).toStrictEqual([]); }); it("still adds candidate labels to broad contributor PRs", async () => { @@ -657,8 +657,8 @@ describe("barnacle-auto-response", () => { labels: expect.arrayContaining([candidateLabels.dirtyCandidate]), }), ); - expect(calls.createComment).toEqual([]); - expect(calls.update).toEqual([]); + expect(calls.createComment).toStrictEqual([]); + expect(calls.update).toStrictEqual([]); }); it("adds proof labels to external PRs without auto-closing by default", async () => { @@ -677,8 +677,8 @@ describe("barnacle-auto-response", () => { labels: expect.arrayContaining([candidateLabels.needsRealBehaviorProof]), }), ); - expect(calls.createComment).toEqual([]); - expect(calls.update).toEqual([]); + expect(calls.createComment).toStrictEqual([]); + expect(calls.update).toStrictEqual([]); }); it("removes stale proof labels when override is present", async () => { @@ -706,7 +706,7 @@ describe("barnacle-auto-response", () => { PROOF_SUFFICIENT_LABEL, ]), ); - expect(calls.update).toEqual([]); + expect(calls.update).toStrictEqual([]); }); it("removes stale negative proof labels and adds supplied when proof is present", async () => { @@ -856,8 +856,8 @@ describe("barnacle-auto-response", () => { }, }); - expect(calls.createComment).toEqual([]); - expect(calls.update).toEqual([]); + expect(calls.createComment).toStrictEqual([]); + expect(calls.update).toStrictEqual([]); }); it("actions existing candidate labels when a maintainer adds trigger-response", async () => { diff --git a/test/scripts/bundled-plugin-build-entries.test.ts b/test/scripts/bundled-plugin-build-entries.test.ts index 27208097301..20c5cfc5ea9 100644 --- a/test/scripts/bundled-plugin-build-entries.test.ts +++ b/test/scripts/bundled-plugin-build-entries.test.ts @@ -119,7 +119,7 @@ describe("bundled plugin build entries", () => { expect(entry).toContain('specifier: "./secret-contract-api.js"'); }); - expect(offenders).toEqual([]); + expect(offenders).toStrictEqual([]); for (const pluginId of [...secretBackedPluginIds].toSorted()) { if (excludedPackageDirs.has(pluginId)) { @@ -146,6 +146,6 @@ describe("bundled plugin build entries", () => { } }); - expect(offenders).toEqual([]); + expect(offenders).toStrictEqual([]); }); }); diff --git a/test/scripts/check-changelog-attributions.test.ts b/test/scripts/check-changelog-attributions.test.ts index d90dd10883d..b9b25d00893 100644 --- a/test/scripts/check-changelog-attributions.test.ts +++ b/test/scripts/check-changelog-attributions.test.ts @@ -24,7 +24,7 @@ describe("check-changelog-attributions", () => { findForbiddenChangelogThanks( "- User-facing fix. Fixes #123. Thanks @external-contributor and @other-user.", ), - ).toEqual([]); + ).toStrictEqual([]); }); it("keeps PR changelog gates on the same attribution policy", () => { diff --git a/test/scripts/check-channel-agnostic-boundaries.test.ts b/test/scripts/check-channel-agnostic-boundaries.test.ts index f82f355dd85..20a4305e6fa 100644 --- a/test/scripts/check-channel-agnostic-boundaries.test.ts +++ b/test/scripts/check-channel-agnostic-boundaries.test.ts @@ -64,7 +64,7 @@ describe("check-channel-agnostic-boundaries", () => { const payload = { mode: "persistent" }; const x = cfg.session.threadBindings?.enabled; `; - expect(findChannelAgnosticBoundaryViolations(source)).toEqual([]); + expect(findChannelAgnosticBoundaryViolations(source)).toStrictEqual([]); }); it("reverse-deps mode flags channel module re-exports", () => { @@ -84,7 +84,7 @@ describe("check-channel-agnostic-boundaries", () => { const channel = "discord"; const x = cfg.channels.discord?.threadBindings?.enabled; `; - expect(findChannelCoreReverseDependencyViolations(source)).toEqual([]); + expect(findChannelCoreReverseDependencyViolations(source)).toStrictEqual([]); }); it("user-facing text mode flags channel names in string literals", () => { @@ -103,7 +103,7 @@ describe("check-channel-agnostic-boundaries", () => { const source = ` import { x } from "../discord/monitor/thread-bindings.js"; `; - expect(findAcpUserFacingChannelNameViolations(source)).toEqual([]); + expect(findAcpUserFacingChannelNameViolations(source)).toStrictEqual([]); }); it("system-mark guard flags hardcoded gear literals", () => { @@ -122,6 +122,6 @@ describe("check-channel-agnostic-boundaries", () => { const source = ` import { x } from "../infra/system-message.js"; `; - expect(findSystemMarkLiteralViolations(source)).toEqual([]); + expect(findSystemMarkLiteralViolations(source)).toStrictEqual([]); }); }); diff --git a/test/scripts/check-extension-wildcard-reexports.test.ts b/test/scripts/check-extension-wildcard-reexports.test.ts index 705a11c1289..0550b81068f 100644 --- a/test/scripts/check-extension-wildcard-reexports.test.ts +++ b/test/scripts/check-extension-wildcard-reexports.test.ts @@ -26,6 +26,6 @@ describe("check-extension-wildcard-reexports", () => { 'export * from "external-package";', ].join("\n"), ), - ).toEqual([]); + ).toStrictEqual([]); }); }); diff --git a/test/scripts/check-plugin-sdk-wildcard-reexports.test.ts b/test/scripts/check-plugin-sdk-wildcard-reexports.test.ts index 635a9ce1dc7..4f1c96ced7d 100644 --- a/test/scripts/check-plugin-sdk-wildcard-reexports.test.ts +++ b/test/scripts/check-plugin-sdk-wildcard-reexports.test.ts @@ -26,6 +26,6 @@ describe("check-plugin-sdk-wildcard-reexports", () => { 'export * from "./src/runtime-api.js";', ].join("\n"), ), - ).toEqual([]); + ).toStrictEqual([]); }); }); diff --git a/test/scripts/install-sh.test.ts b/test/scripts/install-sh.test.ts index ddf8c5d11e5..56fa3e1a7af 100644 --- a/test/scripts/install-sh.test.ts +++ b/test/scripts/install-sh.test.ts @@ -31,7 +31,7 @@ describe("install.sh", () => { const rawAptInstalls = script .split("\n") .filter((line) => /\b(?:sudo\s+)?apt-get\s+install\b/.test(line)); - expect(rawAptInstalls).toEqual([]); + expect(rawAptInstalls).toStrictEqual([]); }); it("exports noninteractive apt env during Linux startup", () => { diff --git a/test/scripts/postinstall-bundled-plugins.test.ts b/test/scripts/postinstall-bundled-plugins.test.ts index dcb2640165a..073dfa967d2 100644 --- a/test/scripts/postinstall-bundled-plugins.test.ts +++ b/test/scripts/postinstall-bundled-plugins.test.ts @@ -576,7 +576,7 @@ describe("bundled plugin postinstall", () => { log: { log: vi.fn(), warn }, homedir: () => "/home/alice", }), - ).toEqual([]); + ).toStrictEqual([]); expect(warn).toHaveBeenCalledWith( expect.stringContaining( diff --git a/test/scripts/verify-docker-attestations.test.ts b/test/scripts/verify-docker-attestations.test.ts index a85d6a4baa3..4859b9f546a 100644 --- a/test/scripts/verify-docker-attestations.test.ts +++ b/test/scripts/verify-docker-attestations.test.ts @@ -69,7 +69,7 @@ describe("verify-docker-attestations", () => { inspectAttestation: () => createAttestation(), }); - expect(errors).toEqual([]); + expect(errors).toStrictEqual([]); }); it("accepts attestation manifests with omitted artifactType", () => { @@ -84,7 +84,7 @@ describe("verify-docker-attestations", () => { }, }); - expect(errors).toEqual([]); + expect(errors).toStrictEqual([]); }); it("reports unexpected attestation artifact types", () => {