Skip to content

Normalize plugin-entry path assertion across platforms#4526

Open
biggameking wants to merge 1 commit into
code-yeongyu:devfrom
biggameking:fix/plugin-entry-path-assertion
Open

Normalize plugin-entry path assertion across platforms#4526
biggameking wants to merge 1 commit into
code-yeongyu:devfrom
biggameking:fix/plugin-entry-path-assertion

Conversation

@biggameking

@biggameking biggameking commented May 26, 2026

Copy link
Copy Markdown
Contributor

Summary

  • normalize the configPath assertion in plugin-entry.test.ts
  • compare against the expected joined path instead of a hard-coded POSIX suffix

Why

This test currently hard-codes a /profiles/today/opencode.json suffix, so it fails on Windows even though the production behavior is correct. The issue is cross-platform and test-only.

Testing

  • bun test src/hooks/auto-update-checker/checker/plugin-entry.test.ts

Notes

  • I intentionally left unrelated working tree changes (bun.lock, assets/oh-my-opencode.schema.json) out of this PR.

Summary by cubic

Fix cross-platform test by normalizing configPath assertion in plugin-entry.test.ts, replacing a hard-coded POSIX suffix with a normalized path.join(profileConfigDir, "opencode.json") comparison so tests pass on Windows.

Written for commit b131d4b. Summary will update on new commits. Review in cubic

@github-actions

github-actions Bot commented May 26, 2026

Copy link
Copy Markdown
Contributor

All contributors have signed the CLA. Thank you! ✅
Posted by the CLA Assistant Lite bot.

@biggameking

Copy link
Copy Markdown
Contributor Author

I have read the CLA Document and I hereby sign the CLA

github-actions Bot added a commit that referenced this pull request May 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant