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 coverage! #22

Open
danielbachhuber opened this issue Jul 1, 2016 · 0 comments
Open

Test coverage! #22

danielbachhuber opened this issue Jul 1, 2016 · 0 comments

Comments

@danielbachhuber
Copy link

It would be great if this project included test coverage, both to ensure the quality of the codebase and for others to learn from.

If you're looking for prior art to copy from, https://github.com/runcommand/runcommand-theme has a test suite that performs shallow rendering of React components using Mocha, Chai, Enzyme and Chai + Enzyme.

One challenge is that, in addition to testing UI interactions, you'll also want to test API interactions. I haven't come up with a good, easy to use way of mocking WP-API in a JS test suite yet, so I'd be curious to hear your thoughts.

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

No branches or pull requests

1 participant