test: tighten helper empty object assertions

This commit is contained in:
Shakker
2026-05-09 04:18:01 +01:00
parent 6dea4f5421
commit bcec18d38b
3 changed files with 5 additions and 5 deletions

View File

@@ -59,7 +59,7 @@ describe("infra store", () => {
const result = readSessionStoreJson5(storePath);
expect(result.ok).toBe(false);
expect(result.store).toEqual({});
expect(result.store).toStrictEqual({});
});
});

View File

@@ -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 () => {

View File

@@ -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({});
});
});