Skip to content

Commit ff432bf

Browse files
committed
refactor: wip 2
1 parent f7d8730 commit ff432bf

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

packages/ci/src/lib/create-execution-observer.int.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ describe('createExecutionObserver', () => {
99
it('should use execute process and use observer to capture stdout message and stderr will be empty', async () => {
1010
const { stdout, stderr } = await executeProcess({
1111
command: 'node',
12-
args: ['-e', `console.log('${message}');`],
12+
args: ['-e', `"console.log('${message}');"`],
1313
observer: createExecutionObserver(),
1414
});
1515

@@ -20,7 +20,7 @@ describe('createExecutionObserver', () => {
2020
it('should use execute process and use observer to capture stdout message and stderr will be error', async () => {
2121
const { stdout, stderr } = await executeProcess({
2222
command: 'node',
23-
args: ['-e', `console.log('${message}'); console.error('${error}');`],
23+
args: ['-e', `"console.log('${message}'); console.error('${error}');"`],
2424
observer: createExecutionObserver(),
2525
});
2626

@@ -31,7 +31,7 @@ describe('createExecutionObserver', () => {
3131
it('should use execute process and use observer to capture stderr error and ignore stdout message', async () => {
3232
const { stdout, stderr } = await executeProcess({
3333
command: 'node',
34-
args: ['-e', `console.log('${message}'); console.error('${error}');`],
34+
args: ['-e', `"console.log('${message}'); console.error('${error}');"`],
3535
observer: createExecutionObserver({ silent: true }),
3636
});
3737

packages/utils/src/lib/file-system.unit.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { stat } from 'node:fs/promises';
33
import path from 'node:path';
44
import { beforeEach, describe, expect, it, vi } from 'vitest';
55
import { MEMFS_VOLUME } from '@code-pushup/test-utils';
6-
import { filePathToCliArg } from './command.js';
76
import {
87
type FileResult,
98
crawlFileSystem,

0 commit comments

Comments
 (0)