-
-
Notifications
You must be signed in to change notification settings - Fork 358
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
Add the ability to specify a custom tempDirectory #171
Comments
@kentcdodds hey :) where does this stand. Do you want to take a stab at this feature, should we try to encourage someone else to implement this feature |
Would be awesome to set it up as a |
This feature would also help me - is it planned to be added? Hmm, was it already added by Line 66 in c388daf
|
@gitgrimbo good point - perhaps a PR to document it would close this issue? :) |
@gitgrimbo @kentcdodds doing a bit of cleanup of old issues; passing an alternate |
The
NYC
constructor already accepts the option. But this needs to be exposed and utilized in the CLI. I almost had things working, but then had to get back to work.My use case is I have frontend and backend code that's tested separately and I want to be able to track coverage on them separately. So I already specify the
--report-dir
for them, but to be able to utilizecheck-coverage
, I need to be able to specify a customtempDirectory
.I had to slightly alter both the
bin/nyc.js
andbin/wrap.js
. Basically this got me most of the way there:In nyc.js
In wrap.js:
;(new NYC({ require: process.env.NYC_REQUIRE ? process.env.NYC_REQUIRE.split(',') : [], enableCache: process.env.NYC_CACHE === 'enable', + tempDirectory: process.env.NYC_TEMP_DIRECTORY, })).wrap()
I think I'm missing something somewhere, but like I said, I've run out of time to work on this. Also want to make sure this is something you want to do :-)
Thanks!
The text was updated successfully, but these errors were encountered: