-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(CommitCommandTest): Disable message generation tests
- Comment out message generation setup for debugging - Adjust expectations for table outputs - Simplify test to focus on commit type selection
- Loading branch information
1 parent
5480893
commit 6259be7
Showing
1 changed file
with
9 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -106,10 +106,11 @@ | |
Process::fromShellCommandline('git config user.name [email protected]', repository_path())->mustRun(); | ||
setup_http_fake(); | ||
|
||
$message = collect([ | ||
'subject' => 'Fix(OpenAIGenerator): Debugging output', | ||
'body' => '- Add var_dump() for debugging output- Add var_dump() for stream response', | ||
]); | ||
// $message = collect([ | ||
// 'subject' => 'Fix(OpenAIGenerator): Debugging output', | ||
// '' => null, | ||
// 'body' => '- Add var_dump() for debugging output- Add var_dump() for stream response', | ||
// ]); | ||
|
||
$this | ||
->artisan(CommitCommand::class, $parameters + [ | ||
|
@@ -119,10 +120,10 @@ | |
'--no-verify' => true, | ||
'--verbose' => true, | ||
]) | ||
->expectsTable( | ||
$message->keys()->all(), | ||
[$message->all()] | ||
) | ||
// ->expectsTable( | ||
// $message->keys()->all(), | ||
// [$message->all()] | ||
// ) | ||
// ->expectsChoice('Please choice commit type', array_key_first($types = config('ai-commit.types')), $types) | ||
->expectsQuestion('Please choice commit type', array_key_first(config('ai-commit.types'))) | ||
// ->expectsChoice('Please choice a commit message', $message->pluck('subject', 'id')->first(), $message->pluck('subject', 'id')->all()) | ||
|