摩卡和超测有什么区别?

what is the difference between Mocha and Supertest?

我是 NodeJs 初学者。不管怎样,我想创建一个从测试开始的应用程序,比如 TDD 方法。

摩卡和超测有什么区别?

mocha是一个测试框架。

Mocha is a feature-rich JavaScript test framework running on Node.js and in the browser, making asynchronous testing simple and fun.

supertest是测试API的模块。

Provides a high-level abstraction for testing HTTP, while still allowing you to drop down to the lower-level API provided by superagent.