




















@@ -62,10 +62,11 @@ function runAssertInstalled({
6262const pluginId = "openclaw-kitchen-sink-fixture";
6363const home = mkdtempSync(path.join(tmpdir(), "openclaw-kitchen-sink-home-"));
6464const installPath = mkdtempSync(path.join(tmpdir(), "openclaw-kitchen-sink-install-"));
65-const pluginsJsonPath = path.join("/tmp", `kitchen-sink-${label}-plugins.json`);
66-const inspectJsonPath = path.join("/tmp", `kitchen-sink-${label}-inspect.json`);
67-const inspectAllJsonPath = path.join("/tmp", `kitchen-sink-${label}-inspect-all.json`);
68-const installPathMarker = path.join("/tmp", `kitchen-sink-${label}-install-path.txt`);
65+const scratchRoot = tmpdir();
66+const pluginsJsonPath = path.join(scratchRoot, `kitchen-sink-${label}-plugins.json`);
67+const inspectJsonPath = path.join(scratchRoot, `kitchen-sink-${label}-inspect.json`);
68+const inspectAllJsonPath = path.join(scratchRoot, `kitchen-sink-${label}-inspect-all.json`);
69+const installPathMarker = path.join(scratchRoot, `kitchen-sink-${label}-install-path.txt`);
6970const installsPath = path.join(home, ".openclaw", "plugins", "installs.json");
7071const spawnEnv = { ...process.env };
7172delete spawnEnv.KITCHEN_SINK_REQUIRE_ALL_DIAGNOSTICS;
@@ -100,6 +101,7 @@ function runAssertInstalled({
100101KITCHEN_SINK_SOURCE: "npm",
101102KITCHEN_SINK_SPEC: "npm:@openclaw/kitchen-sink@latest",
102103KITCHEN_SINK_SURFACE_MODE: "full",
104+KITCHEN_SINK_TMP_DIR: scratchRoot,
103105},
104106});
105107} finally {
@@ -113,41 +115,32 @@ function runAssertInstalled({
113115}
114116115117describe("kitchen-sink plugin assertions", () => {
116-it.skipIf(process.platform === "win32")(
117-"fails full-surface installs when stable diagnostic canaries disappear",
118-() => {
119-const result = runAssertInstalled();
118+it("fails full-surface installs when stable diagnostic canaries disappear", () => {
119+const result = runAssertInstalled();
120120121-expect(result.status).not.toBe(0);
122-expect(`${result.stdout}\n${result.stderr}`).toContain(
123-"missing expected kitchen-sink diagnostic error",
124-);
125-},
126-);
121+expect(result.status).not.toBe(0);
122+expect(`${result.stdout}\n${result.stderr}`).toContain(
123+"missing expected kitchen-sink diagnostic error",
124+);
125+});
127126128-it.skipIf(process.platform === "win32")(
129-"accepts published full-surface installs with stable diagnostic canaries",
130-() => {
131-const result = runAssertInstalled({
132-diagnostics: diagnosticErrors(REQUIRED_FULL_DIAGNOSTIC_CANARIES),
133-});
127+it("accepts published full-surface installs with stable diagnostic canaries", () => {
128+const result = runAssertInstalled({
129+diagnostics: diagnosticErrors(REQUIRED_FULL_DIAGNOSTIC_CANARIES),
130+});
134131135-expect(result.status).toBe(0);
136-},
137-);
132+expect(result.status).toBe(0);
133+});
138134139-it.skipIf(process.platform === "win32")(
140-"keeps exhaustive diagnostic matching available for synchronized fixtures",
141-() => {
142-const result = runAssertInstalled({
143-diagnostics: diagnosticErrors(REQUIRED_FULL_DIAGNOSTIC_CANARIES),
144-env: { KITCHEN_SINK_REQUIRE_ALL_DIAGNOSTICS: "1" },
145-});
135+it("keeps exhaustive diagnostic matching available for synchronized fixtures", () => {
136+const result = runAssertInstalled({
137+diagnostics: diagnosticErrors(REQUIRED_FULL_DIAGNOSTIC_CANARIES),
138+env: { KITCHEN_SINK_REQUIRE_ALL_DIAGNOSTICS: "1" },
139+});
146140147-expect(result.status).not.toBe(0);
148-expect(`${result.stdout}\n${result.stderr}`).toContain(
149-"cli registration missing explicit commands metadata",
150-);
151-},
152-);
141+expect(result.status).not.toBe(0);
142+expect(`${result.stdout}\n${result.stderr}`).toContain(
143+"cli registration missing explicit commands metadata",
144+);
145+});
153146});
このコンテンツは慣性聚合(RSSリーダー)によって自動集約されています。参考としてご覧ください。 原文出典 — 著作権は原著者に帰属します。