惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

IT之家
IT之家
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
A
About on SuperTechFans
博客园 - 聂微东
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
B
Blog RSS Feed
U
Unit 42
Stack Overflow Blog
Stack Overflow Blog
Recent Announcements
Recent Announcements
雷峰网
雷峰网
罗磊的独立博客
Microsoft Security Blog
Microsoft Security Blog
Hugging Face - Blog
Hugging Face - Blog
L
LangChain Blog
人人都是产品经理
人人都是产品经理
The GitHub Blog
The GitHub Blog
F
Fortinet All Blogs
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
H
Help Net Security
P
Proofpoint News Feed
The Cloudflare Blog
D
Docker
大猫的无限游戏
大猫的无限游戏

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
test: tighten plugin absence assertions · openclaw/opencl...
steipete · 2026-05-09 · via Recent Commits to openclaw:main

@@ -236,7 +236,7 @@ async function expectPathAccessState(pathToCheck: string, expected: "exists" | "

236236

await expect(accessExpectation).resolves.toBeUndefined();

237237

return;

238238

}

239-

await expect(accessExpectation).rejects.toThrow();

239+

await expect(accessExpectation).rejects.toMatchObject({ code: "ENOENT" });

240240

}

241241242242

describe("resolveUninstallChannelConfigKeys", () => {

@@ -895,7 +895,7 @@ describe("uninstallPlugin", () => {

895895

expectSuccessfulUninstallActions(result, {

896896

directory: true,

897897

});

898-

await expect(fs.access(pluginDir)).rejects.toThrow();

898+

await expect(fs.access(pluginDir)).rejects.toMatchObject({ code: "ENOENT" });

899899

} finally {

900900

await fs.rm(pluginDir, { recursive: true, force: true });

901901

}

@@ -923,7 +923,7 @@ describe("uninstallPlugin", () => {

923923924924

const applied = await applyPluginUninstallDirectoryRemoval(plan.directoryRemoval);

925925

expect(applied).toEqual({ directoryRemoved: true, warnings: [] });

926-

await expect(fs.access(pluginDir)).rejects.toThrow();

926+

await expect(fs.access(pluginDir)).rejects.toMatchObject({ code: "ENOENT" });

927927

});

928928929929

it("uninstalls npm-managed packages through npm before deleting the package directory", async () => {

@@ -1004,7 +1004,7 @@ describe("uninstallPlugin", () => {

10041004

}),

10051005

}),

10061006

);

1007-

await expect(fs.access(pluginDir)).rejects.toThrow();

1007+

await expect(fs.access(pluginDir)).rejects.toMatchObject({ code: "ENOENT" });

10081008

});

1009100910101010

it("repairs remaining npm plugin openclaw peer links after npm uninstall prunes them", async () => {

@@ -1068,8 +1068,10 @@ describe("uninstallPlugin", () => {

10681068

});

1069106910701070

expect(applied).toEqual({ directoryRemoved: true, warnings: [] });

1071-

await expect(fs.access(removedPluginDir)).rejects.toThrow();

1072-

await expect(fs.access(path.join(npmRoot, "node_modules", "openclaw"))).rejects.toThrow();

1071+

await expect(fs.access(removedPluginDir)).rejects.toMatchObject({ code: "ENOENT" });

1072+

await expect(fs.access(path.join(npmRoot, "node_modules", "openclaw"))).rejects.toMatchObject({

1073+

code: "ENOENT",

1074+

});

10731075

await expect(fs.lstat(peerLink).then((stat) => stat.isSymbolicLink())).resolves.toBe(true);

10741076

});

10751077

@@ -1218,7 +1220,7 @@ describe("uninstallPlugin", () => {

12181220

expect(successfulResult.warnings).toEqual([

12191221

"Failed to prune npm dependencies for plugin package demo-plugin: registry unavailable",

12201222

]);

1221-

await expect(fs.access(pluginDir)).rejects.toThrow();

1223+

await expect(fs.access(pluginDir)).rejects.toMatchObject({ code: "ENOENT" });

12221224

});

1223122512241226

it.each([

@@ -1366,7 +1368,7 @@ describe("uninstallPlugin", () => {

13661368

expectSuccessfulUninstallActions(result, {

13671369

directory: true,

13681370

});

1369-

await expect(fs.access(managedDir)).rejects.toThrow();

1371+

await expect(fs.access(managedDir)).rejects.toMatchObject({ code: "ENOENT" });

13701372

});

1371137313721374

it("deletes tracked installs from a recorded managed extensions root", async () => {

@@ -1386,7 +1388,7 @@ describe("uninstallPlugin", () => {

13861388

expectSuccessfulUninstallActions(result, {

13871389

directory: true,

13881390

});

1389-

await expect(fs.access(installPath)).rejects.toThrow();

1391+

await expect(fs.access(installPath)).rejects.toMatchObject({ code: "ENOENT" });

13901392

});

1391139313921394

it("deletes managed ClawHub install directories", async () => {

@@ -1429,7 +1431,7 @@ describe("uninstallPlugin", () => {

14291431

expectSuccessfulUninstallActions(result, {

14301432

directory: true,

14311433

});

1432-

await expect(fs.access(installPath)).rejects.toThrow();

1434+

await expect(fs.access(installPath)).rejects.toMatchObject({ code: "ENOENT" });

14331435

});

1434143614351437

it("deletes managed git install repos outside the extensions directory", async () => {

@@ -1455,8 +1457,8 @@ describe("uninstallPlugin", () => {

14551457

expectSuccessfulUninstallActions(result, {

14561458

directory: true,

14571459

});

1458-

await expect(fs.access(installPath)).rejects.toThrow();

1459-

await expect(fs.access(installParent)).rejects.toThrow();

1460+

await expect(fs.access(installPath)).rejects.toMatchObject({ code: "ENOENT" });

1461+

await expect(fs.access(installParent)).rejects.toMatchObject({ code: "ENOENT" });

14601462

});

1461146314621464

it("keeps non-empty managed git install parents after deleting the repo", async () => {

@@ -1483,7 +1485,7 @@ describe("uninstallPlugin", () => {

14831485

expectSuccessfulUninstallActions(result, {

14841486

directory: true,

14851487

});

1486-

await expect(fs.access(installPath)).rejects.toThrow();

1488+

await expect(fs.access(installPath)).rejects.toMatchObject({ code: "ENOENT" });

14871489

await expect(fs.access(path.join(installParent, "keep.txt"))).resolves.toBeUndefined();

14881490

});

14891491