From 9b640cf97d52ae02bd442abbfd027b94f205177e Mon Sep 17 00:00:00 2001 From: "opencode-agent[bot]" <219766164+opencode-agent[bot]@users.noreply.github.com> Date: Fri, 24 Jul 2026 12:33:28 -0500 Subject: [PATCH] test(core): remove flaky npm install test (#38729) Co-authored-by: Aiden Cline --- packages/core/test/npm.test.ts | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/packages/core/test/npm.test.ts b/packages/core/test/npm.test.ts index b2235d5b7af..3dae4f434be 100644 --- a/packages/core/test/npm.test.ts +++ b/packages/core/test/npm.test.ts @@ -64,29 +64,3 @@ describe("Npm.add", () => { expect(entries.fallback.entrypoint).toEndWith("/index.js") }) }) - -describe("Npm.install", () => { - test("respects omit from project .npmrc", async () => { - await using tmp = await tmpdir() - - await writePackage(tmp.path, { - name: "fixture", - dependencies: { - "prod-pkg": "file:./prod-pkg", - }, - devDependencies: { - "dev-pkg": "file:./dev-pkg", - }, - }) - await Bun.write(path.join(tmp.path, ".npmrc"), "omit=dev\n") - await fs.mkdir(path.join(tmp.path, "prod-pkg")) - await fs.mkdir(path.join(tmp.path, "dev-pkg")) - await writePackage(path.join(tmp.path, "prod-pkg"), { name: "prod-pkg" }) - await writePackage(path.join(tmp.path, "dev-pkg"), { name: "dev-pkg" }) - - await Npm.install(tmp.path) - - await expect(fs.stat(path.join(tmp.path, "node_modules", "prod-pkg"))).resolves.toBeDefined() - await expect(fs.stat(path.join(tmp.path, "node_modules", "dev-pkg"))).rejects.toThrow() - }) -})