CAN ANYONE RESOLVE THIS ISSUE
[{
“resource”: “/c:/Users/MY COMPUTER/Desktop/hngproject-root/src/tests/auth.spec.js”,
“owner”: “Jest (hngproject-root)”,
“severity”: 8,
“message”: “POST /auth/register > should register a user successfullyn—–nError: thrown: “Exceeded timeout of 15000 ms for a test.nAdd a timeout value to this test to increase the timeout, if this is a long-running test. See https://jestjs.io/docs/api#testname-fn-timeout.””,
“source”: “Jest”,
“startLineNumber”: 6,
“startColumn”: 1,
“endLineNumber”: 6,
“endColumn”: 58
}]
Jest Output
The Jest output shows that one of your tests is failing due to exceeding the timeout limit, and there are two open handles (TCPSERVERWRAP). These open handles are likely keeping Jest from exiting properly and are a common issue when dealing with asynchronous code, particularly in tests involving server requests.
Maxsight Tech is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.