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

Added Mocha unit testing framework and one example test case. #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zinigor
Copy link

@zinigor zinigor commented Feb 10, 2016

This is a suggestion to add an example unit testing framework and establish at least some sort of minimal working testing configuration. In my experience it's not so easy for a beginner to properly set up everything and avoid some pitfalls. So with this I wanted to set up a first step in an iterative process towards a well balanced testing setup.

<h3>Hello, World!</h3>
<p>I made this thing.</p>
<h3 ref="header">Hello, World!</h3>
<p ref="text">I made this thing.</p>
Copy link
Owner

Choose a reason for hiding this comment

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

I don't think that the boilerplate should suggest adjusting components to expose refs, instead we should use the test utils that are shipped with React or perhaps Enzyme.

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