Skip to content

Commit ebe8d14

Browse files
author
ityaozm@gmail.com
committed
chore(tests): update moonshot generator test configuration
- Update the configuration for the moonshot generator test - Set 'stream' parameter to false in the configuration
1 parent 7f5fea4 commit ebe8d14

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

tests/Pest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
->beforeAll(function (): void {
2222
})
2323
->beforeEach(function (): void {
24+
// setup_http_fake();
2425
})
2526
->afterEach(function (): void {
2627
})

tests/Unit/Generators/MoonshotGeneratorTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
});
2020

2121
it('can generate commit messages', function (): void {
22+
config('ai-commit')->set('generators.moonshot.parameters.stream', false);
2223
expect(app(GeneratorManager::class)->driver('moonshot'))
2324
->generate('OK')->toBeString()->not->toBeEmpty();
2425
Http::assertSentCount(1);

0 commit comments

Comments
 (0)