Skip to content

Commit 5559d5f

Browse files
author
John Doe
committed
refactor: fix unit tests
1 parent cbf9d19 commit 5559d5f

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

packages/nx-plugin/src/executors/cli/executor.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,7 @@ export default async function runAutorunExecutor(
4848
await executeProcess({
4949
command,
5050
args: [...positionals, ...args],
51-
...(envVariables && {
52-
env: Object.fromEntries(
53-
Object.entries(envVariables).map(([v, k]) => [v, `"${k}"`]),
54-
),
55-
}),
51+
...(envVariables && { env: envVariables }),
5652
...(cwd ? { cwd } : {}),
5753
});
5854
} catch (error) {

packages/nx-plugin/src/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { plugin } from './plugin/index.js';
22

33
export { createNodes, createNodesV2 } from './plugin/index.js';
44
export type { AutorunCommandExecutorOptions } from './executors/cli/schema.js';
5-
export { objectToCliArgs } from './executors/internal/cli.js';
65
export { generateCodePushupConfig } from './generators/configuration/code-pushup-config.js';
76
export { configurationGenerator } from './generators/configuration/generator.js';
87
export type { ConfigurationGeneratorOptions } from './generators/configuration/schema.js';

packages/utils/src/lib/transform.unit.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ describe('objectToCliArgs', () => {
233233
});
234234

235235
it('should throw error for unsupported type', () => {
236-
const params = { unsupported: undefined as any };
236+
const params = { unsupported: Symbol('test') as any };
237237
expect(() => objectToCliArgs(params)).toThrow('Unsupported type');
238238
});
239239
});

0 commit comments

Comments
 (0)