From bcec18d38bd6fb67bc3ae7a66ac2a60ac06402cd Mon Sep 17 00:00:00 2001 From: Shakker Date: Sat, 9 May 2026 04:18:01 +0100 Subject: [PATCH] test: tighten helper empty object assertions --- src/infra/infra-store.test.ts | 2 +- src/test-utils/channel-plugins.test.ts | 2 +- test/vitest-performance-config.test.ts | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/infra/infra-store.test.ts b/src/infra/infra-store.test.ts index 21cb61d35d9..8ea77968cf5 100644 --- a/src/infra/infra-store.test.ts +++ b/src/infra/infra-store.test.ts @@ -59,7 +59,7 @@ describe("infra store", () => { const result = readSessionStoreJson5(storePath); expect(result.ok).toBe(false); - expect(result.store).toEqual({}); + expect(result.store).toStrictEqual({}); }); }); diff --git a/src/test-utils/channel-plugins.test.ts b/src/test-utils/channel-plugins.test.ts index 7d2b5e86097..2076e50758c 100644 --- a/src/test-utils/channel-plugins.test.ts +++ b/src/test-utils/channel-plugins.test.ts @@ -11,7 +11,7 @@ describe("createChannelTestPluginBase", () => { expect(base.meta.docsPath).toBe("/channels/demo-channel"); expect(base.capabilities.chatTypes).toEqual(["direct"]); expect(base.config.listAccountIds(cfg)).toEqual(["default"]); - expect(base.config.resolveAccount(cfg)).toEqual({}); + expect(base.config.resolveAccount(cfg)).toStrictEqual({}); }); it("honors config and metadata overrides", async () => { diff --git a/test/vitest-performance-config.test.ts b/test/vitest-performance-config.test.ts index f75ab0ce2b7..44114e32907 100644 --- a/test/vitest-performance-config.test.ts +++ b/test/vitest-performance-config.test.ts @@ -42,7 +42,7 @@ describe("loadVitestExperimentalConfig", () => { }); it("disables the filesystem module cache by default on Windows", () => { - expect(loadVitestExperimentalConfig({}, "win32")).toEqual({}); + expect(loadVitestExperimentalConfig({}, "win32")).toStrictEqual({}); }); it("still allows enabling the filesystem module cache explicitly on Windows", () => { @@ -68,7 +68,7 @@ describe("loadVitestExperimentalConfig", () => { }, "linux", ), - ).toEqual({}); + ).toStrictEqual({}); }); it("enables import timing output and import breakdown reporting", () => { @@ -90,6 +90,6 @@ describe("loadVitestExperimentalConfig", () => { }); it("uses RUNNER_OS to detect Windows even when the platform is not win32", () => { - expect(loadVitestExperimentalConfig({ RUNNER_OS: "Windows" }, "linux")).toEqual({}); + expect(loadVitestExperimentalConfig({ RUNNER_OS: "Windows" }, "linux")).toStrictEqual({}); }); });