My component test passes but it also flags an open handles issue? I don't know where the issue could be as this only happens on the CI pipeline. The method that gets flagged is:
Jest has detected the following 1 open handle potentially keeping Jest from exiting:
● TCPWRAP
54 |
55 | const getDataForApp = async (): Promise<any> => {
> 56 | const response = await axios.get(`${apiUrlForApp}/app/product`, {
| ^
58 | }).then(res => res.data);
59 |
If the tests pass, then what could this be trying to tell me? as it stops jest from exiting anyway.