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

Popular posts from this blog

java - Jasper subreport showing only one entry from the JSON data source when embedded in the Title band -

serialization - Convert Any type in scala to Array[Byte] and back -

SonarQube Plugin for Jenkins does not find SonarQube Scanner executable -