-
-
Notifications
You must be signed in to change notification settings - Fork 22
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
[regression] find-cache-dir 3.3.0, used through nyc+mocha, causes creation of a folder tree ./false/find-cache-dir/
containing js files
#26
Comments
// @Richienb |
@ronjouch In your environment, what is |
@Richienb oh wow. This is a beautiful bug 😄. Good catch, you're right. In Shippable CI,
→ Given this is a still a very new feature: with appropriate communication to initial users and a major semver break, would a less collision-prone env. var (e.g. |
I think we should just gracefully handle this. If the value is true/false/1/0, we don’t use the environment variable. |
I have a Mocha test suite, code-coveraged by Nyc, run inside Shippable CI with the following command:
NODE_ENV=test nyc --reporter=cobertura --report-dir=../shippable/codecoverage/ mocha --exit --require ./config/mocha.js --recursive test --timeout 80000 --ui bdd -R xunit --reporter-options output=../shippable/testresults/maestro.xml
."find-cache-dir": "^3.2.0"
), tests pass, but running the tests now cause creation of a spurious folder namedfalse
, itself containing a folder namedfind-cache-dir
, containing js named<myOriginalFilename>-<some kind of hash>.js
:I cannot reproduce the issue on my local dev. machine, the issue only arises on Shippable CI. I don't know why yet.
The project uses a package-lock, guaranteeing the only difference is the find-cache-dir version. So, the regression must lie in v3.2.0...v3.3.0 .
Node 12.15.0, Nyc 15.0.0, Mocha 7.1.0. Project is closed source and I cannot share it, sorry. I hope the regression window is enough to find a fix, as I'm unable to reproduce the issue locally and it would be difficult for me to provide a minimal & reliably-reproducible test case.
Thanks.
The text was updated successfully, but these errors were encountered: