S
S
Sergey Filnor2020-11-08 01:31:58
JavaScript
Sergey Filnor, 2020-11-08 01:31:58

What are tests written in for Node.js projects?

Goodnight!
Tell me, what is the best way to write tests on Node.js projects? On the client, we use react and test projects using Jest, which does a great job of everything.

I tried to connect it to the project on the node and saw a warning from the developers that Jest was developed as a front-end testing framework and that you can use it to test Node at your own peril and risk.
I plan to test the work of services and their work with databases - mongo & mysql

Googled what tools are there besides - mocha (+ chai), AVA?
What is generally relevant and worth using? Or can you use the same Jest, you just need to configure it correctly?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rag'n' Code Man, 2020-11-08
@filnor

JEST is quite possible to use, so you write a data validation function that returns either true or false, and you want to check it: do true and false on the front-end differ from true and false on the back-end? :) - of course not!
Use for health!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question