Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use require.cache to resolve root #543

Merged
merged 2 commits into from
May 2, 2024
Merged

Conversation

mdonnalley
Copy link
Contributor

  • Use require.cache to find the importing file before attempting to traverse up the file system to find the root
  • Allow users to set OCLIF_TEST_ROOT env var to an absolute path to their CLI root

Fixes #542
@W-15643461@

mdonnalley and others added 2 commits April 30, 2024 14:24

Verified

This commit was signed with the committer’s verified signature.
mdonnalley Mike Donnalley
@mdonnalley mdonnalley merged commit ad0ef17 into main May 2, 2024
7 checks passed
@mdonnalley mdonnalley deleted the mdonnalley/workspace-root branch May 2, 2024 18:14
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.

All tests using .command() fail with command X not found errors
2 participants