diff --git a/packages/esm/src/test/esm-loader.test.ts b/packages/esm/src/test/esm-loader.test.ts index 1d86775..b1374d4 100644 --- a/packages/esm/src/test/esm-loader.test.ts +++ b/packages/esm/src/test/esm-loader.test.ts @@ -9,7 +9,7 @@ import { stripVTControlCharacters } from 'node:util'; const require = createRequire(import.meta.url); const fixturesRoot = dirname(require.resolve('@ts-tools/fixtures/package.json')); -export function runCommand(command: string): { output: string; exitCode: number } { +function runCommand(command: string): { output: string; exitCode: number } { const [execName, ...args] = command.split(' '); const { output, status: exitCode } = spawnSync(execName!, args); return { output: stripVTControlCharacters(output.join('\n')), exitCode: exitCode || 0 }; diff --git a/packages/node/src/test/node-extension.test.mts b/packages/node/src/test/node-extension.test.mts index a86225f..f81e444 100644 --- a/packages/node/src/test/node-extension.test.mts +++ b/packages/node/src/test/node-extension.test.mts @@ -9,7 +9,7 @@ import { stripVTControlCharacters } from 'node:util'; const require = createRequire(import.meta.url); const fixturesRoot = dirname(require.resolve('@ts-tools/fixtures/package.json')); -export function runCommand(command: string): { output: string; exitCode: number } { +function runCommand(command: string): { output: string; exitCode: number } { const [execName, ...args] = command.split(' '); const { output, status: exitCode } = spawnSync(execName!, args); return { output: stripVTControlCharacters(output.join('\n')), exitCode: exitCode || 0 };