A
A
Arthur Gurinovich2016-05-16 12:47:31
JavaScript
Arthur Gurinovich, 2016-05-16 12:47:31

Testing ReactJS at all testing levels: user, unit, integration, API. What to choose?

Good afternoon,
The following question arose: Is there a need to write automated tests for an application in ReactJS (+ Redux), and at all levels, is there a JavaScript testing framework that could solve the problem of testing at all levels?
So far, I have chosen the following options to automate part of the testing levels:
1) Jest
2) Jasmine + Karma
3) Webdriver.io
Maybe there are some pitfalls in these options or maybe there are better options?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
Z
Zakhar Orlov, 2016-05-16
@ArthurGurinovich

AVA + enzyme
https://github.com/kentcdodds/react-ava-workshop
https://github.com/sindresorhus/ava/blob/master/do...

K
Konstantin Kitmanov, 2016-05-16
@k12th

For unit tests, I advise you to look at tape (+ nyc, what's the point in uncovered tests), here is a good article: Why I use Tape Instead of Mocha &So Should You .

V
Victor, 2015-07-17
@v_decadence

The error is due to the fact that Git by default does not allow updating the current non-bare repository branch via push.
On the server, either initialize the repository like this:
This will create a repository without a working copy (bare repository)
Or set it in the repository config:
[receive]
denyCurrentBranch = ignore (or warn)
So that you can push to the current branch of a non-bare repository.
The second method is not recommended, as it can lead to a conflicted state of the working copy.
If there should be a working copy on the server, then only the second way is to either make a bare storage where to push from the client (it will be a synchronization point), and in the place where the working copy is needed, clone the first storage and periodically pull from it.
bare storage

D
DevOpsEngineer, 2015-11-03
@DevOpsEngineer

sometimes easier to use

server$ git checkout --detach
laptop$ git push master
servet$ git stash
server$ git checkout master

If you understand what DETACHED HEAD is
https://git-scm.com/docs/git-checkout/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question