Skip to content

Conversation

@karanA-aws
Copy link
Contributor

Problem

  • Should have a test case tracking the state changes while code generation.

Solution

  • Unit test case covering the state transition while code generation.

  • Treat all work as PUBLIC. Private feature/x branches will not be squash-merged at release time.
  • Your code changes must meet the guidelines in CONTRIBUTING.md.
  • License: I confirm that my contribution is made under the terms of the Apache 2.0 license.

@karanA-aws karanA-aws requested a review from a team as a code owner January 14, 2025 19:49
@justinmk3 justinmk3 closed this Jan 15, 2025
@justinmk3 justinmk3 reopened this Jan 15, 2025
@justinmk3 justinmk3 changed the title Added unit test covering state transitions. test(/dev): state transitions Jan 15, 2025
@justinmk3 justinmk3 closed this Jan 15, 2025
@justinmk3 justinmk3 reopened this Jan 15, 2025
Comment on lines 40 to 41
sinon.stub(session, 'conversationId').get(() => conversationId)
sinon.stub(session, 'uploadId').get(() => uploadId)
Copy link
Contributor

Choose a reason for hiding this comment

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

why can't you set state on the session ? why is a stub needed? stubs and mocks should be avoided where possible. they should be a last resort, not the first thing that is tried when state needs to be set.

@justinmk3
Copy link
Contributor

@karanA-aws please ensure that your github user belongs to a team in the https://github.com/aws org

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.

2 participants