mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-17 20:21:13 +00:00
chore(test): align staged runtime deps test typing
This commit is contained in:
@@ -3,7 +3,16 @@ import path from "node:path";
|
||||
import { afterEach, describe, expect, it } from "vitest";
|
||||
import { cleanupTrackedTempDirs, makeTrackedTempDir } from "./test-helpers/fs-fixtures.js";
|
||||
|
||||
type StageBundledPluginRuntimeDeps = (params?: { cwd?: string; repoRoot?: string }) => void;
|
||||
type StageRuntimeDepsInstallParams = {
|
||||
packageJson: Record<string, unknown>;
|
||||
};
|
||||
|
||||
type StageBundledPluginRuntimeDeps = (params?: {
|
||||
cwd?: string;
|
||||
repoRoot?: string;
|
||||
installAttempts?: number;
|
||||
installPluginRuntimeDepsImpl?: (params: StageRuntimeDepsInstallParams) => void;
|
||||
}) => void;
|
||||
|
||||
async function loadStageBundledPluginRuntimeDeps(): Promise<StageBundledPluginRuntimeDeps> {
|
||||
const moduleUrl = new URL("../../scripts/stage-bundled-plugin-runtime-deps.mjs", import.meta.url);
|
||||
|
||||
Reference in New Issue
Block a user