Skip to content

test: assert what the fixture commands carry - #33

Merged
maxholman[bot] merged 1 commit into
masterfrom
test/real-assertions
Sep 27, 2026
Merged

maxholman[bot] merged 1 commit into
masterfrom
test/real-assertions

Conversation

@maxholman

@maxholman maxholman Bot commented Sep 27, 2026

Copy link
Copy Markdown
Contributor

The petstore, openai and billing tests sent a command through a mock server and then asserted toBeTruthy(), which nothing could fail. They now assert the method, path, query and serialized body on the generated command itself, since those are what codegen decides.

The event stream test still goes through the client, because it checks the parsed events and their type.

The petstore, openai and billing tests sent a command through a mock
server and then checked that the result was truthy, which nothing could
fail. They now assert the method, path, query and serialized body the
generated command carries, which is what codegen decides. The event
stream test still runs through the client, since it checks the parsed
events and their type.

Co-Authored-By: LLM <noreply@maxholman.dev>
@maxholman
maxholman Bot merged commit 742e114 into master Sep 27, 2026
4 checks passed
@maxholman maxholman Bot mentioned this pull request Sep 27, 2026
@maxholman
maxholman Bot deleted the test/real-assertions branch September 27, 2026 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants