forked from jestjs/jest
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdetect_open_handles.js.snap
More file actions
28 lines (20 loc) · 946 Bytes
/
detect_open_handles.js.snap
File metadata and controls
28 lines (20 loc) · 946 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`prints message about flag on forceExit 1`] = `
"Force exiting Jest
Have you considered using \`--detectOpenHandles\` to detect async operations that kept running after all tests finished?"
`;
exports[`prints message about flag on slow tests 1`] = `
"Jest did not exit one second after the test run has completed.
This usually means that there are asynchronous operations that weren't stopped in your tests. Consider running Jest with \`--detectOpenHandles\` to troubleshoot this issue."
`;
exports[`prints out info about open handlers 1`] = `
"Jest has detected the following 1 open handle potentially keeping Jest from exiting:
● GETADDRINFOREQWRAP
5 | const app = new http.Server();
6 |
> 7 | app.listen({host: 'localhost', port: 0});
| ^
8 |
at Object.<anonymous> (server.js:7:5)
at Object.<anonymous> (__tests__/test.js:3:1)"
`;