Closed ravilution closed 8 years ago
Reopened #977.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.
@cpojer Reopening the accidentally closed https://github.com/facebook/jest/issues/977
node 5.4.1 jest-cli ^12.0.2 restify ^4.0.4 supertest ^1.2.0
I want to use Jest to do backend nodejs REST API testing also. I do not want to install another test tool like mocha etc.
In above code
appServer
returns a restify server instance. I am usingsupertest
because I want to do code coverage as well. But I get below error.I have
automock
turned off. I also tried youunmock
code. I also triedjest.disableAutomock();
. Nothing works. Below is my jest config in package.json