mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 07:40:44 +00:00
test: avoid heavy registry imports in web provider tests
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from "vitest";
|
||||
import { createEmptyPluginRegistry } from "./registry.js";
|
||||
import { createEmptyPluginRegistry } from "./registry-empty.js";
|
||||
|
||||
type LoaderModule = typeof import("./loader.js");
|
||||
type ManifestRegistryModule = typeof import("./manifest-registry.js");
|
||||
|
||||
@@ -338,7 +338,7 @@ function expectRuntimeProviderResolution(
|
||||
|
||||
describe("resolvePluginWebSearchProviders", () => {
|
||||
beforeAll(async () => {
|
||||
({ createEmptyPluginRegistry } = await import("./registry.js"));
|
||||
({ createEmptyPluginRegistry } = await import("./registry-empty.js"));
|
||||
manifestRegistryModule = await import("./manifest-registry.js");
|
||||
loaderModule = await import("./loader.js");
|
||||
pluginAutoEnableModule = await import("../config/plugin-auto-enable.js");
|
||||
|
||||
Reference in New Issue
Block a user