Answer the question
In order to leave comments, you need to log in
What to use for JavaScript/NodeJS testing?
I have little experience in testing JS using Mocha and Chai.
A friend uses Jest and Enzyme.
Is there a panacea for JS and NodeJS testing?
I mean the choice of technologies so that it can be used for Vanilla Js, NodeJs, Angular, React.
Answer the question
In order to leave comments, you need to log in
For E2E and UI testing, you can also look towards TestCafe , the most important features:
1. Support for many browsers (Chrome, Firefox, IE, Edge, Safari), including cloud browser farms BrowserStack and Saucelabs , support for running tests without a visible UI ( headless) in Chrome and Firefox (handy for CI).
2. Integration with popular frameworks - Angular, React, Vue.
3. A bunch of integration recipes with various free CI systems.
4. There is a plugin for Visual Studio Code .
5. The mechanism of automatic waiting in assertions and methods for obtaining the page state - allows you to exclude "sudden" crashes of running tests due to the fact that the page loaded a little longer than usual, the element appeared a little later, the request worked a little later, etc.
Also recently released beta TestCafe Studio - a special IDE for visual test recording. With it, you don’t even have to write code for tests - just manually execute a test case in the browser, and then run the recorded test on your machine with one click or on CI using the console TestCafe.
js has a hell of a lot of test frameworks, but in general they are pretty poor. I advise you to avoid those that are specifically written for some frameworks, these are jest, protractor, karma and the like shit.
Urine and tea are by the way normal, good for e2e nigthwatch.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question