issues
search
oclif
/
test
test helpers for oclif components
MIT License
17
stars
11
forks
source link
fix: use require.cache to resolve root
#543
Closed
mdonnalley
closed
5 months ago
mdonnalley
commented
5 months ago
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@
require.cache
to find the importing file before attempting to traverse up the file system to find the rootOCLIF_TEST_ROOT
env var to an absolute path to their CLI rootFixes #542 @W-15643461@