Answer the question
In order to leave comments, you need to log in
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
AVA + enzyme
https://github.com/kentcdodds/react-ava-workshop
https://github.com/sindresorhus/ava/blob/master/do...
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 .
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
sometimes easier to use
server$ git checkout --detach
laptop$ git push master
servet$ git stash
server$ git checkout master
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question