Skip to content
This repository has been archived by the owner on Dec 4, 2020. It is now read-only.

Setup karma and jasmine for test environment #3

Closed
wants to merge 3 commits into from
Closed

Setup karma and jasmine for test environment #3

wants to merge 3 commits into from

Conversation

EmilShakirov
Copy link
Contributor

Summary

This PR adds karma and jasmine for unit-testing and test coverage. Sample tests are also included.

Why not jest?

Although Facebook recommends Jest for unit-tesing of react components, it seems like Jest doesn't work very well with webpack (at least I could not make them work together). I've also tried to use some node modules(jest-webpack, jestpack, webpack-babel-jest, jest-webpack-alias tons of them), but also had no luck.
Based on this, I've decided to use good old stack of karma + jasmine.

@EmilShakirov
Copy link
Contributor Author

Closed in favor of #11

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant