test: repair current main gate regressions

This commit is contained in:
Peter Steinberger
2026-03-22 22:19:57 +00:00
parent d6c63163b4
commit 47e8ffc2e9
6 changed files with 16 additions and 10 deletions

View File

@@ -34,7 +34,6 @@ function createEmptyPluginRegistry(): PluginRegistry {
diagnostics: [],
};
}
const sessionBindingState = vi.hoisted(() => {
const records = new Map<string, SessionBindingRecord>();
let nextId = 1;

View File

@@ -69,6 +69,7 @@ describe("formatPluginSourceForTable", () => {
{
OPENCLAW_BUNDLED_PLUGINS_DIR: path.join(ignoredHome, "ignored-bundled"),
OPENCLAW_STATE_DIR: path.join(ignoredHome, "ignored-state"),
OPENCLAW_HOME: undefined,
HOME: ignoredHome,
},
() =>
@@ -76,6 +77,7 @@ describe("formatPluginSourceForTable", () => {
env: {
...process.env,
HOME: homeDir,
OPENCLAW_HOME: undefined,
OPENCLAW_BUNDLED_PLUGINS_DIR: "~/bundled",
OPENCLAW_STATE_DIR: "~/state",
},