Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: testkit mock command handling on failures #349

Merged
merged 1 commit into from
Jun 1, 2022

Conversation

pvlugter
Copy link
Member

@pvlugter pvlugter commented Jun 1, 2022

Resolves #347

Make the fix for when the message is undefined on failures. Add tests for the mock entities to test this.

Make the test example services shared between tests and integration tests. Codegen and kalix-scripts is a bit awkward to use here still, as it doesn't yet support TypeScript and makes some other assumptions — so generate the type declarations manually and commit these files too. Entities in the JS SDK also support async command handlers, which the codegen doesn't generate for currently. Mock command handling will also need to be async. Will make those changes separately.

Copy link
Contributor

@johanandren johanandren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@johanandren johanandren merged commit 7e49cb9 into lightbend:main Jun 1, 2022
@pvlugter pvlugter deleted the mock-command-handling branch June 1, 2022 23:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

testkit: command handling tries to serialize/deserialize undefined messages
2 participants