-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
CLI: Add flag to disable version checks #8488
Conversation
This pull request is being automatically deployed with ZEIT Now (learn more). 🔍 Inspect: https://zeit.co/storybook/monorepo/hquqoself |
…change && IMPROVE types
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 great! There are some deleted tests that need to get ported to the new structure.
70a77cc
to
d49c1aa
Compare
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.
Possibly one more case to handle?
added the test @shilman |
@@ -239,5 +239,23 @@ describe('versions API', () => { | |||
|
|||
expect(api.versionUpdateAvailable()).toEqual(true); | |||
}); | |||
|
|||
it('new prerelease version', async () => { |
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.
Will it work when the user is upgrading from one prerelease to another?
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.
added code & tests for this
…date when user is on prerelease that's newer
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.
BINGO!!! 💥
Issue: #6194
What I did
I made it so the version check only happens once in node, so it's less disruptive
I added a CLI flag that disables the feature entirely
How to test
run an example with
--no-version-updates
, it should not do the version checkrun an example without
--no-version-updates
, it should do the version check