-
-
Notifications
You must be signed in to change notification settings - Fork 299
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
Internal improvements, add more tests #689
Conversation
#684 can be done now as well, but I think we should wait until the tests are more robust first. |
I think that should be everything covered in |
…sks/prompts, style/grammar fixes
759ac4e
to
6c76518
Compare
@sindresorhus do you want to try a test publish again? Think I've fixed the issues |
I’ve been able to publish https://github.com/tommy-mitchell/gfm-lang-cli, https://github.com/tommy-mitchell/cli-template, and https://github.com/tommy-mitchell/lib-template using this branch. |
|
Fixed 🙃 some e2e tests would be nice. |
A couple of minor things I noticed:
|
Where is the correct order listed? const RELEASE_TYPES = [
'major',
'premajor',
'minor',
'preminor',
'patch',
'prepatch',
'prerelease',
] |
I don't think there's any "correct" order, but for Existing order:
|
One more thing, when running in non-node project, it crashes:
|
I've reverted the order and the backticks for the
I don't think that's this branch of |
I'm not sure what's causing this. I updated to the latest version |
Yeah. My mistake. Too much switching back and forth between the versions. |
That update simply renames an option though. So not sure why that would cause this. The thing that is supposed to restore the cursor is called
|
I'm gonna merge this as it will unblock other things, but I don't think we can release it until we figure out why the cursor is not restored as it will affect usage after using |
Nice work on all this by the way. It's great to get more tests so we can make changes more confidently. 👍 |
Seems it might've been updating |
@sindresorhus is there a reason we're using Lines 63 to 75 in 1cb22e0
|
Feel free to remove it. |
@tommy-mitchell I'm still seeing the SemVer issue in the
|
Fixes #29
Fixes #383
Sorry for the big diff. Besides adding lots of tests, a lot of changes are pretty connected.
Summary:
npm/*
,git-util.js
,util.js
inquirer
to test prompts inui.js
cli.js
andindex.js
esmock
extensively to make tests concurrentexeca
with command outputs, or in combination withtempy
for integration testsVersion
class to be more minimalpretty-version-diff.js
intoVersion
's formattingMore tests with the CLI are sorely needed.
New
Version
APIIssueHunt Summary
Referenced issues
This pull request has been submitted to: