-
Notifications
You must be signed in to change notification settings - Fork 5.6k
feat(npm): add support for --reload=npm: and --reload=npm:<package> #15972
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
Conversation
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.
Nice! LGTM
let stdout = String::from_utf8_lossy(&output.stdout); | ||
assert_contains!(stderr, "Download"); | ||
assert_contains!(stdout, "createChalk: chalk"); | ||
assert!(output.status.success()); |
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.
We need to create a less verbose api for doing this kind of testing in the future.
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.
I agree, I'll see how many tests could use a helper
Adds support for npm packages in --reload flag.
It causes the registry info and tarball to be downloaded again.