summaryrefslogtreecommitdiffhomepage
path: root/packages
diff options
context:
space:
mode:
authorLuke Parker <[email protected]>2026-02-24 22:51:56 +1000
committerGitHub <[email protected]>2026-02-24 22:51:56 +1000
commit06f25c78f655257819d681b39598bf151837caf6 (patch)
tree4b566161ebe45091b0676c8089689d3c74ada9e7 /packages
parent1a0639e5b89265ac89afd7bcfae835a64744768d (diff)
downloadopencode-06f25c78f655257819d681b39598bf151837caf6.tar.gz
opencode-06f25c78f655257819d681b39598bf151837caf6.zip
fix(test): use path.sep in discovery test for cross-platform path matching (#14905)
Diffstat (limited to 'packages')
-rw-r--r--packages/opencode/test/skill/discovery.test.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/opencode/test/skill/discovery.test.ts b/packages/opencode/test/skill/discovery.test.ts
index d1963f697..5664fa32b 100644
--- a/packages/opencode/test/skill/discovery.test.ts
+++ b/packages/opencode/test/skill/discovery.test.ts
@@ -77,7 +77,7 @@ describe("Discovery.pull", () => {
test("downloads reference files alongside SKILL.md", async () => {
const dirs = await Discovery.pull(CLOUDFLARE_SKILLS_URL)
// find a skill dir that should have reference files (e.g. agents-sdk)
- const agentsSdk = dirs.find((d) => d.endsWith("/agents-sdk"))
+ const agentsSdk = dirs.find((d) => d.endsWith(path.sep + "agents-sdk"))
expect(agentsSdk).toBeDefined()
if (agentsSdk) {
const refs = path.join(agentsSdk, "references")