chore(test): align staged runtime deps test typing

This commit is contained in:
Vignesh Natarajan
2026-04-07 03:03:51 -07:00
parent 56b0714004
commit b6a806d67b

View File

@@ -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);