Beautiful, AI-native markdown IDE and LLM wiki
TypeScript 2nd-brainagent-skillsclaudecodexcompany-braindocsknowledge-knowledge-baseknowledge-managementllmllm-wikillm-wiki-karpathymarkdownmarkdown-editormdmdxnotespkmsecond-brainskills
Reduce native waits in the packed install timeout test (#5578)
Nick Gomez58ecdea42b72
diff --git a/packages/cli/tests/e2e/packed-install.test.ts b/packages/cli/tests/e2e/packed-install.test.tsindex 0578c26eb..09e8e3c76 100644--- a/packages/cli/tests/e2e/packed-install.test.ts+++ b/packages/cli/tests/e2e/packed-install.test.ts@@ -310,6 +310,7 @@ test('reports registry socket timeouts as unavailable', async () => {try {fixture.responses.set(path, 'timeout');let attempts = 0;+ let firstInstall: Promise<{ stdout: string; stderr: string }> | undefined;await expect(installPackedCli({ ...fixture, env: { ...fixture.env, npm_config_fetch_timeout: '1000' } },@@ -317,13 +318,14 @@ test('reports registry socket timeouts as unavailable', async () => {now: Date.now,executeInstall: (command, args, options) => {attempts++;- return promisify(execFile)(command, args, options);+ firstInstall ??= promisify(execFile)(command, args, options);+ return firstInstall;},},),).rejects.toMatchObject({ name: 'CliInstallUnavailableError', exitCode: 77 });expect(attempts).toBe(3);- expect(fixture.requests.filter((request) => request === path).length).toBeGreaterThanOrEqual(3);+ expect(fixture.requests).toContain(path);} finally {await fixture.close();}