diff --git a/lib/util/exec/common.ts b/lib/util/exec/common.ts index 5287586355a8786a98e217b8d0d5e747cc597e2d..3b27c5127a27d136fce733527c22cac8be9c8483 100644 --- a/lib/util/exec/common.ts +++ b/lib/util/exec/common.ts @@ -145,8 +145,7 @@ function kill(cp: ChildProcess, signal: NodeJS.Signals): boolean { } } -// TODO: rename #16653 export const rawExec: ( cmd: string, opts: RawExecOptions -) => Promise<ExecResult> = exec; // TODO: rename #16653 +) => Promise<ExecResult> = exec; diff --git a/lib/util/exec/types.ts b/lib/util/exec/types.ts index 9f8244bf7fd77bc638abf9acb76528676fcfb9b3..2cc555e0bf97b2fda972604685fbde2fc32fc418 100644 --- a/lib/util/exec/types.ts +++ b/lib/util/exec/types.ts @@ -27,7 +27,6 @@ export interface DockerOptions { cwd?: Opt<string>; } -// TODO: rename #16653 export interface RawExecOptions extends ChildProcessSpawnOptions { // TODO: to be removed in #16655 /** @@ -38,7 +37,6 @@ export interface RawExecOptions extends ChildProcessSpawnOptions { cwd?: string; } -// TODO: rename #16653 export interface ExecResult { stdout: string; stderr: string; @@ -46,7 +44,6 @@ export interface ExecResult { export type ExtraEnv<T = unknown> = Record<string, T>; -// TODO: rename #16653 export interface ExecOptions { cwd?: string; cwdFile?: string; diff --git a/test/exec-util.ts b/test/exec-util.ts index 35dc99bfbca57da743409312e5d4583439552772..ff9a2269eba81c7b6baf3a4dfdaf67fc9b9d0f9e 100644 --- a/test/exec-util.ts +++ b/test/exec-util.ts @@ -8,7 +8,6 @@ import { mockedFunction } from './util'; jest.mock('../lib/util/exec/common'); -// TODO: rename #16653 export type ExecResult = { stdout: string; stderr: string } | Error; export const exec = mockedFunction(_exec); @@ -18,10 +17,8 @@ export interface ExecSnapshot { options?: RawExecOptions | null | undefined; } -// TODO: rename #16653 export type ExecSnapshots = ExecSnapshot[]; -// TODO: rename #16653 function execSnapshot(cmd: string, options?: RawExecOptions): ExecSnapshot { const snapshot = { cmd, @@ -42,7 +39,6 @@ function execSnapshot(cmd: string, options?: RawExecOptions): ExecSnapshot { const defaultExecResult = { stdout: '', stderr: '' }; -// TODO: rename #16653 export function mockExecAll( execResult: ExecResult = defaultExecResult ): ExecSnapshots { @@ -57,7 +53,6 @@ export function mockExecAll( return snapshots; } -// TODO: rename #16653 export function mockExecSequence(execResults: ExecResult[]): ExecSnapshots { const snapshots: ExecSnapshots = []; execResults.forEach((execResult) => {