-
-
Notifications
You must be signed in to change notification settings - Fork 359
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
feat: add delete
option to instrument command
#1005
feat: add delete
option to instrument command
#1005
Conversation
Sync repo
Bring fork up to date
test: stop using LAZY_LOAD_COUNT (istanbuljs#960)
Get latest
Get latest
Get Latest
feat: add support to exclude files on coverage report generation (istanbuljs#982)
Get latest
With this change you can now tell nyc to clean the output directory when instrumenting, to do this an output directory must be specified. I've currently set the default value for this to false so it can be a non-breaking change, although the default behaviour should be changed to true in the next major release. I've included tests for this behaviour, and introduced lint support for `afterEach` and required the `makeDir` module
… deleting cwd The protection against deleting cwd is a little heavy handed, but I figure if you don't want to delete your cwd and probably don't want your output files going there either. Added test support for these changes.
clean
option to instrument commanddelete
option to instrument command
After a chat with @coreyfarrell I've changed the name and added some level of defence against |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for this; I really like @coreyfarrell thinking that we should have checks and balances in place to protect us from overly eager rimrafs 😆
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good once we have a chance to resolve the conflicts.
Never edited a file through Github's web interface before
This change adds a
--clean
switch to the nyc instrument command, it must be set true and an output directory must be specified.I've set the default value for this to false so it can be a non-breaking change, but this should change in the next major release. I've included tests for this function, introduced lint support for
afterEach
in the tests, and required themakeDir
module.