summaryrefslogtreecommitdiffhomepage
path: root/packages/shared/test
diff options
context:
space:
mode:
authorDax Raad <[email protected]>2026-04-17 14:08:23 -0400
committerDax Raad <[email protected]>2026-04-17 14:08:45 -0400
commit2f73e73e9d03262fb59d4e942b3e1e073cb76cb9 (patch)
tree620bd4ab144320057ebf8ed625bf4bd0eb1b3fff /packages/shared/test
parent4c30a78cd9623fe8f3a7c27860a7b8a0cc760e39 (diff)
downloadopencode-2f73e73e9d03262fb59d4e942b3e1e073cb76cb9.tar.gz
opencode-2f73e73e9d03262fb59d4e942b3e1e073cb76cb9.zip
trace npm fully
Diffstat (limited to 'packages/shared/test')
-rw-r--r--packages/shared/test/npm.test.ts18
1 files changed, 0 insertions, 18 deletions
diff --git a/packages/shared/test/npm.test.ts b/packages/shared/test/npm.test.ts
deleted file mode 100644
index 4443d2985..000000000
--- a/packages/shared/test/npm.test.ts
+++ /dev/null
@@ -1,18 +0,0 @@
-import { describe, expect, test } from "bun:test"
-import { Npm } from "@opencode-ai/shared/npm"
-
-const win = process.platform === "win32"
-
-describe("Npm.sanitize", () => {
- test("keeps normal scoped package specs unchanged", () => {
- expect(Npm.sanitize("@opencode/acme")).toBe("@opencode/acme")
- expect(Npm.sanitize("@opencode/[email protected]")).toBe("@opencode/[email protected]")
- expect(Npm.sanitize("prettier")).toBe("prettier")
- })
-
- test("handles git https specs", () => {
- const spec = "acme@git+https://github.com/opencode/acme.git"
- const expected = win ? "acme@git+https_//github.com/opencode/acme.git" : spec
- expect(Npm.sanitize(spec)).toBe(expected)
- })
-})