disqus / disqus-react

A React component for Disqus
MIT License
369 stars 46 forks source link

Add testing suite and component tests #92

Closed tterb closed 3 years ago

tterb commented 3 years ago

Description

I set up a simple testing suite with basic tests for each of the components and created a separate directory for all of the webpack/jest config files. I also created a constants.js to store component constants that can be shared between components and tests.

Motivation and Context

The tests aren't comprehensive enough to eliminate the need for manual testing, but it's a start.

How Has This Been Tested?

Tested locally and all tests are currently passing. Also tested the components manually on the example test site.

Checklist:


This change is Reviewable