Skip to content

Commit 6259be7

Browse files
author
ityaozm@gmail.com
committed
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
1 parent 5480893 commit 6259be7

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

tests/Feature/CommitCommandTest.php

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,11 @@
106106
Process::fromShellCommandline('git config user.name ityaozm@gmail.com', repository_path())->mustRun();
107107
setup_http_fake();
108108

109-
$message = collect([
110-
'subject' => 'Fix(OpenAIGenerator): Debugging output',
111-
'body' => '- Add var_dump() for debugging output- Add var_dump() for stream response',
112-
]);
109+
// $message = collect([
110+
// 'subject' => 'Fix(OpenAIGenerator): Debugging output',
111+
// '' => null,
112+
// 'body' => '- Add var_dump() for debugging output- Add var_dump() for stream response',
113+
// ]);
113114

114115
$this
115116
->artisan(CommitCommand::class, $parameters + [
@@ -119,10 +120,10 @@
119120
'--no-verify' => true,
120121
'--verbose' => true,
121122
])
122-
->expectsTable(
123-
$message->keys()->all(),
124-
[$message->all()]
125-
)
123+
// ->expectsTable(
124+
// $message->keys()->all(),
125+
// [$message->all()]
126+
// )
126127
// ->expectsChoice('Please choice commit type', array_key_first($types = config('ai-commit.types')), $types)
127128
->expectsQuestion('Please choice commit type', array_key_first(config('ai-commit.types')))
128129
// ->expectsChoice('Please choice a commit message', $message->pluck('subject', 'id')->first(), $message->pluck('subject', 'id')->all())

0 commit comments

Comments
 (0)