Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

test: preserve native owner lookup in launcher cancellation fixture (#13509)

Adam Eivy3e58bb12c854
diff --git a/scripts/run-ci-tests.test.js b/scripts/run-ci-tests.test.js
index 0e960a659f..1eadc3e59e 100644
--- a/scripts/run-ci-tests.test.js
+++ b/scripts/run-ci-tests.test.js
@@ -890,7 +890,7 @@ describe('report launcher subprocess lifecycle (#9804)', () => {
});
const errors = vi.spyOn(console, 'error').mockImplementation(() => {});
vi.useFakeTimers();
- vi.doMock('child_process', () => ({ spawn: () => child }));
+ vi.doMock('child_process', async importOriginal => ({ ...await importOriginal(), spawn: () => child }));
vi.doMock('node:os', async importOriginal => ({ ...await importOriginal(), tmpdir: () => host }));
vi.doMock('../server/lib/bufferedSpawn.js', async importOriginal => ({
...await importOriginal(), killProcessTree: vi.fn(),