Skip to content

tests: derive repo roots from test file locations#34

Merged
dkundel-openai merged 1 commit intoopenai:mainfrom
VOIDXAI:voidxai/issue-27-test-portability
Mar 31, 2026
Merged

tests: derive repo roots from test file locations#34
dkundel-openai merged 1 commit intoopenai:mainfrom
VOIDXAI:voidxai/issue-27-test-portability

Conversation

@VOIDXAI
Copy link
Copy Markdown
Contributor

@VOIDXAI VOIDXAI commented Mar 31, 2026

Summary

  • derive the repo root in test files from import.meta.url
  • remove the hardcoded /Users/dkundel/code/codex-plugin dependency

Why

Closes #27.

The current test suite assumes one developer-specific checkout path, which makes npm test fail on fresh clones and masks real regressions behind path errors.

Validation

  • node --test tests/commands.test.mjs
  • node --test --test-name-pattern "setup reports ready when fake codex is installed and authenticated" tests/runtime.test.mjs

@VOIDXAI VOIDXAI requested a review from a team March 31, 2026 03:38
@dkundel-openai dkundel-openai merged commit 19642ad into openai:main Mar 31, 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.

Tests hardcode /Users/dkundel/code/codex-plugin, so npm test fails outside the original machine

2 participants