mirror of
https://github.com/moltbot/moltbot.git
synced 2026-04-23 22:55:24 +00:00
test: trim import-heavy startup paths
This commit is contained in:
@@ -7,7 +7,7 @@ import { buildPluginSdkEntrySources, pluginSdkEntrypoints } from "./entrypoints.
|
||||
|
||||
const require = createRequire(import.meta.url);
|
||||
const tsdownModuleUrl = pathToFileURL(require.resolve("tsdown")).href;
|
||||
const bundledRepresentativeEntrypoints = ["outbound-runtime", "matrix-runtime-heavy"] as const;
|
||||
const bundledRepresentativeEntrypoints = ["matrix-runtime-heavy"] as const;
|
||||
const bundledCoverageEntrySources = buildPluginSdkEntrySources(bundledRepresentativeEntrypoints);
|
||||
|
||||
describe("plugin-sdk bundled exports", () => {
|
||||
|
||||
@@ -49,14 +49,7 @@ const ROOT_DIR = resolve(dirname(fileURLToPath(import.meta.url)), "..");
|
||||
const PLUGIN_SDK_DIR = resolve(ROOT_DIR, "plugin-sdk");
|
||||
const requireFromHere = createRequire(import.meta.url);
|
||||
const sourceCache = new Map<string, string>();
|
||||
const representativeRuntimeSmokeSubpaths = [
|
||||
"channel-runtime",
|
||||
"conversation-runtime",
|
||||
"provider-auth",
|
||||
"provider-setup",
|
||||
"setup",
|
||||
"webhook-ingress",
|
||||
] as const;
|
||||
const representativeRuntimeSmokeSubpaths = ["channel-runtime", "conversation-runtime"] as const;
|
||||
|
||||
const importResolvedPluginSdkSubpath = async (specifier: string) =>
|
||||
import(pathToFileURL(requireFromHere.resolve(specifier)).href);
|
||||
|
||||
Reference in New Issue
Block a user