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

推荐订阅源

Vercel News
Vercel News
博客园 - 【当耐特】
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
小众软件
小众软件
Hugging Face - Blog
Hugging Face - Blog
aimingoo的专栏
aimingoo的专栏
WordPress大学
WordPress大学
G
Google Developers Blog
博客园 - 叶小钗
大猫的无限游戏
大猫的无限游戏
P
Proofpoint News Feed
J
Java Code Geeks
U
Unit 42
云风的 BLOG
云风的 BLOG
阮一峰的网络日志
阮一峰的网络日志
N
Netflix TechBlog - Medium
宝玉的分享
宝玉的分享
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
D
Docker
V
Visual Studio Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
H
Help Net Security
V
V2EX
T
Tailwind CSS Blog

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: remove no-op mock registrars · openclaw/openclaw@0a...
vincentkoc · 2026-06-19 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -1,8 +1,7 @@

11

// Slack tests cover actions.blocks plugin behavior.

22

import { describe, expect, it } from "vitest";

3-

import { createSlackEditTestClient, installSlackBlockTestMocks } from "./blocks.test-helpers.js";

3+

import { createSlackEditTestClient } from "./blocks.test-helpers.js";

44
5-

installSlackBlockTestMocks();

65

const { editSlackMessage } = await import("./actions.js");

76

const SLACK_TEXT_LIMIT = 8000;

87
Original file line numberDiff line numberDiff line change

@@ -35,9 +35,6 @@ vi.mock("./accounts.js", async () => {

3535

};

3636

});

3737
38-

// Kept for compatibility with existing tests; mocks install at module evaluation.

39-

export function installSlackBlockTestMocks() {}

40-
4138

export function createSlackEditTestClient(): SlackEditTestClient {

4239

return {

4340

chat: {

Original file line numberDiff line numberDiff line change

@@ -1,12 +1,11 @@

11

// Slack tests cover send.blocks plugin behavior.

22

import { describe, expect, it } from "vitest";

3-

import { createSlackSendTestClient, installSlackBlockTestMocks } from "./blocks.test-helpers.js";

3+

import { createSlackSendTestClient } from "./blocks.test-helpers.js";

44

import {

55

clearSlackThreadParticipationCache,

66

hasSlackThreadParticipation,

77

} from "./sent-thread-cache.js";

88
9-

installSlackBlockTestMocks();

109

const { sendMessageSlack } = await import("./send.js");

1110

const SLACK_TEST_CFG = { channels: { slack: { botToken: "xoxb-test" } } };

1211

const SLACK_TEXT_LIMIT = 8000;

Original file line numberDiff line numberDiff line change

@@ -1,15 +1,14 @@

11

// Slack tests cover send.identity fallback plugin behavior.

22

import { logVerbose } from "openclaw/plugin-sdk/runtime-env";

33

import { beforeEach, describe, expect, it, vi } from "vitest";

4-

import { createSlackSendTestClient, installSlackBlockTestMocks } from "./blocks.test-helpers.js";

4+

import { createSlackSendTestClient } from "./blocks.test-helpers.js";

55
66

vi.mock("openclaw/plugin-sdk/runtime-env", () => ({

77

logVerbose: vi.fn(),

88

danger: (message: string) => message,

99

shouldLogVerbose: () => false,

1010

}));

1111
12-

installSlackBlockTestMocks();

1312

const { sendMessageSlack } = await import("./send.js");

1413

const SLACK_TEST_CFG = { channels: { slack: { botToken: "xoxb-test" } } };

1514
Original file line numberDiff line numberDiff line change

@@ -1,14 +1,13 @@

11

// Slack tests cover send.upload plugin behavior.

22

import type { WebClient } from "@slack/web-api";

33

import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";

4-

import { installSlackBlockTestMocks } from "./blocks.test-helpers.js";

4+

import "./blocks.test-helpers.js";

55

import {

66

clearSlackThreadParticipationCache,

77

hasSlackThreadParticipation,

88

} from "./sent-thread-cache.js";

99
1010

// --- Module mocks (must precede dynamic import) ---

11-

installSlackBlockTestMocks();

1211

const loadOutboundMediaFromUrlMock = vi.hoisted(() =>

1312

vi.fn(async (_mediaUrl: string, _options?: unknown) => ({

1413

buffer: Buffer.from("fake-image"),

Original file line numberDiff line numberDiff line change

@@ -10,7 +10,7 @@ import {

1010

registerGetReplyRuntimeOverrides,

1111

} from "./get-reply.test-fixtures.js";

1212

import { loadGetReplyModuleForTest } from "./get-reply.test-loader.js";

13-

import { registerGetReplyCommonMocks } from "./get-reply.test-mocks.js";

13+

import "./get-reply.test-mocks.js";

1414
1515

const mocks = vi.hoisted(() => ({

1616

applyMediaUnderstanding: vi.fn(async (..._args: unknown[]) => undefined),

@@ -22,8 +22,6 @@ const mocks = vi.hoisted(() => ({

2222

initSessionState: vi.fn(),

2323

}));

2424
25-

registerGetReplyCommonMocks();

26-
2725

vi.mock("../../globals.js", () => ({

2826

logVerbose: vi.fn(),

2927

}));

Original file line numberDiff line numberDiff line change

@@ -77,6 +77,3 @@ vi.mock("./stage-sandbox-media.runtime.js", () => ({

7777

vi.mock("./typing.js", () => ({

7878

createTypingController: vi.fn(() => createMockTypingController()),

7979

}));

80-
81-

/** Shared placeholder mock registrar for get-reply tests that need common mock imports. */

82-

export function registerGetReplyCommonMocks(): void {}

Original file line numberDiff line numberDiff line change

@@ -1,8 +1,6 @@

11

// Installs shared runtime mocks used by get-reply test modules.

22

import { vi } from "vitest";

3-

import { registerGetReplyCommonMocks } from "./get-reply.test-mocks.js";

4-
5-

registerGetReplyCommonMocks();

3+

import "./get-reply.test-mocks.js";

64
75

vi.mock("../../link-understanding/apply.runtime.js", () => ({

86

applyLinkUnderstanding: vi.fn(async () => undefined),

Original file line numberDiff line numberDiff line change

@@ -2,9 +2,7 @@

22

import { Command } from "commander";

33

import { beforeEach, describe, expect, it, vi } from "vitest";

44

import { createIosNodeListResponse } from "./program.nodes-test-helpers.js";

5-

import { callGateway, installBaseProgramMocks, runtime } from "./program.test-mocks.js";

6-
7-

installBaseProgramMocks();

5+

import { callGateway, runtime } from "./program.test-mocks.js";

86
97

let registerNodesCli: typeof import("./nodes-cli.js").registerNodesCli;

108
Original file line numberDiff line numberDiff line change

@@ -3,9 +3,8 @@ import * as fs from "node:fs/promises";

33

import { Command } from "commander";

44

import { afterAll, beforeAll, beforeEach, describe, expect, it, vi } from "vitest";

55

import { IOS_NODE, createIosNodeListResponse } from "./program.nodes-test-helpers.js";

6-

import { callGateway, installBaseProgramMocks, runtime } from "./program.test-mocks.js";

6+

import { callGateway, runtime } from "./program.test-mocks.js";

77
8-

installBaseProgramMocks();

98

let registerNodesCli: typeof import("./nodes-cli.js").registerNodesCli;

109
1110

function getFirstRuntimeLogLine(): string {