-
-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(ci): add smoke tests for commander integration
- Loading branch information
1 parent
d127242
commit d01d0b7
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/usr/bin/env bash | ||
|
||
function check_options { | ||
command_name=$1 | ||
node dist/bin.js $command_name | ||
node dist/bin.js $command_name --filter "." | ||
node dist/bin.js $command_name --source package.json | ||
node dist/bin.js $command_name --types dev | ||
node dist/bin.js $command_name --types dev,workspace | ||
} | ||
|
||
check_options "fix-mismatches" | ||
check_options "lint-semver-ranges" | ||
check_options "list-mismatches" | ||
check_options "list" | ||
check_options "set-semver-ranges" | ||
|
||
node dist/bin.js format | ||
node dist/bin.js format --source package.json | ||
node dist/bin.js format --indent " " | ||
|
||
node dist/bin.js lint-semver-ranges --semver-range "" | ||
|
||
node dist/bin.js set-semver-ranges --semver-range "" |