Skip to content

CalebMorris/react-moment-proptypes-tests

Repository files navigation

ReactMomentProptypes Tests

A set of tests that can be run in the browser.

There appears to be some problems with testing React isolated from a browser resulting in the occasional discrepancy in behavior. Example of v1.3.0 not handling undefined correctly in react-moment-proptypes#23.

Caveats

The test code makes use of ES6 to work with React and the current recommendations for components.

If there is enough desire for a lower level implementation I can work toward back-porting support.

Running Tests

Browser Execution

CLI Execution

The dev setup allows to execution in Chrome headless browser through puppeteer.

Simply run test-all to test against moment-1.7.0, moment-1.6.0, and the latest moment version.

About

Test suite for react-moment-proptypes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages