Skip to content

Commit

Permalink
test: avoid exporting symbols from test file
Browse files Browse the repository at this point in the history
  • Loading branch information
AviVahl committed Aug 27, 2024
1 parent 37da000 commit 9589c3b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/esm/src/test/esm-loader.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
Expand Down
2 changes: 1 addition & 1 deletion packages/node/src/test/node-extension.test.mts
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
Expand Down

0 comments on commit 9589c3b

Please sign in to comment.