unit testing - What will be a good way to test non react components used in ReactJS? -
what way test non react components in reactjs. use enzymes limited react components. way unit test non react components.
from enzyme's github page:
"enzyme unopinionated regarding test runner or assertion library use, , should compatible major test runners , assertion libraries out there. documentation , examples enzyme use mocha , chai, should able extrapolate framework of choice."
pretty sure can test sort of javascript enzyme, don't use constructs built enzyme made enzyme, or better use assertion libraries need non-react components.
edit: caveats might run into, there solutions them https://github.com/airbnb/enzyme/issues/278
Comments
Post a Comment