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

got enzyme test working with redux connected components #111

Merged
merged 2 commits into from Aug 1, 2021

Conversation

jimmycngo
Copy link
Collaborator

Fixed the enzyme issue, by:

  1. using jsdom test environment instead of default node test environment.
  2. when doing a shallow render use .children().dive() to render and wrap components

Still having issues simulating an onClick in redux connected component:

  1. Mocking and Spying on the useState function call doesn't seem to work, maybe I can try reading the prop directly

@jimmycngo
Copy link
Collaborator Author

Updated port to be 3068 to avoid potential conflicts with user apps. Converted to decimals

K:75
u:117
r:114
+_____
306
8 should be 56 but I just added the 8 to the end for that 4 number look.

Partially completed custom metrics page with enzyme:

  • I still need to test the form, drag n drop, and hydrating from local storage

Copy link

@stevendelro stevendelro left a comment

Choose a reason for hiding this comment

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

looks good!

@stevendelro stevendelro merged commit 9c49f5a into oslabs-beta:dev Aug 1, 2021
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.

None yet

2 participants