Skip to content

Commit 2bc20e4

Browse files
hiwepyclaude
andcommitted
fix: correct test-utils import path for standalone build
- Change ../../test-utils → ../test-utils (project-local, not monorepo) - Fix test-utils/runtime-env.js (remove TS type annotation from JS file) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent a3c59f6 commit 2bc20e4

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/channel.lifecycle.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
} from "openclaw/plugin-sdk";
99
import { describe, expect, it, vi } from "vitest";
1010

11-
import { createRuntimeEnv } from "../../test-utils/runtime-env.js";
11+
import { createRuntimeEnv } from "../test-utils/runtime-env.js";
1212
import { computeWeComMsgSignature, encryptWeComPlaintext } from "./crypto.js";
1313
import { wecomPlugin } from "./channel.js";
1414
import { handleWeComWebhookRequest } from "./monitor.js";

test-utils/runtime-env.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export function createRuntimeEnv() {
44
return {
55
log: vi.fn(),
66
error: vi.fn(),
7-
exit: vi.fn((code: number) => {
7+
exit: vi.fn((code) => {
88
throw new Error(`exit ${code}`);
99
}),
1010
};

0 commit comments

Comments
 (0)