Skip to content

Commit eea9651

Browse files
committed
fix: unit tests
1 parent 1bc77d8 commit eea9651

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/cli/operations/dev/__tests__/codezip-dev-server.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { beforeEach, describe, expect, it, vi } from 'vitest';
77
const mockSpawn = vi.fn();
88
vi.mock('child_process', () => ({
99
spawn: (...args: unknown[]) => mockSpawn(...args),
10-
spawnSync: vi.fn(() => ({ status: 0 })),
10+
spawnSync: vi.fn(() => ({ status: 0, stdout: Buffer.from(''), stderr: Buffer.from('') })),
1111
}));
1212

1313
vi.mock('fs', () => ({

src/cli/operations/dev/__tests__/container-dev-server.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ describe('ContainerDevServer', () => {
354354
await server.start();
355355

356356
const spawnArgs = getSpawnArgs();
357-
expect(spawnArgs).toContain('OTEL_EXPORTER_OTLP_ENDPOINT=http://127.0.0.1:4318');
357+
expect(spawnArgs).toContain('OTEL_EXPORTER_OTLP_ENDPOINT=http://host.docker.internal:4318');
358358
expect(spawnArgs).toContain('OTEL_EXPORTER_OTLP_PROTOCOL=http/json');
359359
});
360360

0 commit comments

Comments
 (0)