+ 2
// SOLVED Is there a built-in Unit Test API for JavaScript?
like this one for Python https://youtu.be/1Lfv5tUGsn8
2 Respuestas
+ 2
Many unit test tools for JavaScript, famous one is Jest. For real JavaScript dev, they write codes with a lot of unit test to ensure their codes free of issues.
Mocha is another unit test tool.
https://code.sololearn.com/WdmebiMnC9f5/?ref=app
Only amateur js guys, use console.log to do testing 🤣😅
So next time you see my js codes using console.log to test output, you can say I am non professional guy.. 🤣
+ 2
Here a guide to use jest, easy to use but got to use node to run.
https://flaviocopes.com/jest/