mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 08:40:44 +00:00
refactor: remove plugin dependency cleanup leftovers
This commit is contained in:
@@ -4,7 +4,6 @@ import path from "node:path";
|
||||
import { describe, expect, it } from "vitest";
|
||||
import {
|
||||
hasGatewayReadyLog,
|
||||
isIgnoredDistRuntimeWatchPath,
|
||||
shouldRefreshBuildStampForRestoredArtifacts,
|
||||
writeBuildAndRuntimePostBuildStamps,
|
||||
} from "../../scripts/check-gateway-watch-regression.mjs";
|
||||
@@ -14,24 +13,6 @@ import {
|
||||
} from "../../scripts/lib/local-build-metadata-paths.mjs";
|
||||
|
||||
describe("check-gateway-watch-regression", () => {
|
||||
it("ignores top-level dist-runtime extension dependency debris", () => {
|
||||
expect(isIgnoredDistRuntimeWatchPath("dist-runtime/extensions/node_modules")).toBe(true);
|
||||
expect(
|
||||
isIgnoredDistRuntimeWatchPath(
|
||||
"dist-runtime/extensions/node_modules/playwright-core/index.js",
|
||||
),
|
||||
).toBe(true);
|
||||
});
|
||||
|
||||
it("keeps plugin runtime graph paths counted", () => {
|
||||
expect(isIgnoredDistRuntimeWatchPath("dist-runtime/extensions/openai/index.js")).toBe(false);
|
||||
expect(
|
||||
isIgnoredDistRuntimeWatchPath(
|
||||
"dist-runtime/extensions/openai/node_modules/openclaw/index.js",
|
||||
),
|
||||
).toBe(false);
|
||||
});
|
||||
|
||||
it("recognizes current and legacy gateway ready logs", () => {
|
||||
expect(hasGatewayReadyLog("[gateway] http server listening (0 plugins, 0.8s)")).toBe(true);
|
||||
expect(hasGatewayReadyLog("[gateway] ready (0 plugins, 0.8s)")).toBe(true);
|
||||
|
||||
Reference in New Issue
Block a user