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

Add types to the state used in tests #5217

Merged
merged 4 commits into from Aug 22, 2022

Conversation

antgamdia
Copy link
Contributor

Description of the change

This PR simply adds types to the state variables used along the UI test suite. Sometimes, we add some properties (or we miss others) that don't really belong to the state type definition. Without a type declaration, we don't get any warning in the IDE. This PR is to fix this.

Benefits

Type-related warnings when adding wrong fields to the state vars used in the tests

Possible drawbacks

N/A

Applicable issues

Additional information

N/A

Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com>
@netlify
Copy link

netlify bot commented Aug 17, 2022

Deploy Preview for kubeapps-dev canceled.

Built without sensitive environment variables

Name Link
🔨 Latest commit c7ad566
🔍 Latest deploy log https://app.netlify.com/sites/kubeapps-dev/deploys/63039b4aa6197f0009381661

Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com>
Copy link
Collaborator

@castelblanque castelblanque left a comment

Choose a reason for hiding this comment

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

Good, this will make building tests less error prone. Thanks!

Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com>

Conflicts:
	dashboard/src/actions/repos.test.tsx
@antgamdia antgamdia merged commit 8db518f into vmware-tanzu:main Aug 22, 2022
@antgamdia antgamdia deleted the typed-test-states branch August 22, 2022 17:04
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.

None yet

3 participants