react-defaulting-image
v1.0.9
Published
image with default
Downloads
13
Readme
react-defaulting-image
this simple component allows for specifying a default image if the target image can not be loaded.
unit testing strategies
while this is a very simple component, i'm also using this repo to evaluate a few unit testing libraries:
- automatically initializes jsdom to be able to test jsx type functionality via react test helpers
- handy auto-mock feature
- jasmine-2 by default
- example
- requires initialization of jsdom
- can use with various assertion libraries, chai is one popular option
- example
- requires initialization of jsdom
- runs tests in parallel for performance and isolation win
- enhanced power-assert messages ftw
- example
at this point, ava is my fave based on isolation, concurrency and enhanced-assertion messages