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

Test : write test cases for components #6

Merged
merged 4 commits into from
Feb 6, 2021

Conversation

nishantbisen09
Copy link
Collaborator

@nishantbisen09 nishantbisen09 commented Feb 4, 2021

What?

  • Written test cases for all the Custom Components in the application.
  • Provided 100% code coverage for these components.
  • Added enzyme support to test Stateful Components.
  • Removed React.CreateElement in CopyToClipboard component and added <textarea />

Screenshots

image

@nishantbisen09
Copy link
Collaborator Author

Update

Added test cases for LyricAppContainer

Screenshots

Overall Coverage

image

All files coverage

image

Copy link
Contributor

@ArfatSalman ArfatSalman left a comment

Choose a reason for hiding this comment

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

Rewrite every test in LyricsAppContainer.test.js and remove Enzyme from your code. Try to use RTL for now.

Let me know if something is not achievable using RTL, then we'll consider Enzyme.

Generally, you'd not mix two different types of testing libraries in the same app.

src/components/resultCard/ResultCard.js Outdated Show resolved Hide resolved
src/tests/pages/LyricsAppContainer.test.js Outdated Show resolved Hide resolved
src/tests/pages/LyricsAppContainer.test.js Outdated Show resolved Hide resolved
src/tests/pages/LyricsAppContainer.test.js Outdated Show resolved Hide resolved
src/tests/pages/LyricsAppContainer.test.js Outdated Show resolved Hide resolved
src/utility/appConstants.js Outdated Show resolved Hide resolved
@nishantbisen09 nishantbisen09 merged commit 6b7ed26 into master Feb 6, 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