question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug]: Jest open handles after upgrade from angular v12 to v13

See original GitHub issue

Version

11.1.2

Steps to reproduce

  1. Clone https://github.com/SimonMueller/jest-preset-angular-open-handle-reproduction
  2. Run npm i
  3. Run npm t
  4. See test output

Expected behavior

No open handles after tests are done executing.

Actual behavior

Two open handles after tests are done executing. See screenshot: image

Additional context

We saw this behavior after upgrading from angular 12 where these open handles are not present. I tested this aswell with the repo above.

Environment

System:
    OS: Linux 5.15 Ubuntu 22.04 LTS 22.04 (Jammy Jellyfish)
    CPU: (8) x64 Intel(R) Core(TM) i7-7820HQ CPU @ 2.90GHz
  Binaries:
    Node: 14.19.1 - ~/.nvm/versions/node/v14.19.1/bin/node
    npm: 6.14.16 - ~/.nvm/versions/node/v14.19.1/bin/npm
  npmPackages:
    jest: 27.5.1 => 27.5.1

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:9
  • Comments:14

github_iconTop GitHub Comments

3reactions
borjapazrcommented, Jun 1, 2022

It seems that the problem is related to this library, not to Angular.

https://github.com/angular/angular/issues/45776#issuecomment-1143113716

1reaction
Bil0commented, Aug 18, 2022

Hello, same error with angular v14 image

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular >=13 | jest-preset-angular - GitHub Pages
With Jest 28 and jest-preset-angular v12.0.0, ng-jest-resolver is no longer ... Upgrade the project to Angular 13 following https://update.angular.io/.
Read more >
Angular v13 Jest with nx test - SyntaxError: Cannot use import ...
From what I've found online, this seems like a common issue to projects using Jest and upgrading to Angular 13. Our project doesn't...
Read more >
Find out how much code you're testing - Angular
When the tests are complete, the command creates a new /coverage folder in the project. Open the index.html file to see a report...
Read more >
Changelog - Cypress Documentation
Updated the error messaging to provide more context when parallel group ... a cypress command (e.g. cypress open ) to when the Cypress...
Read more >
Node.js v19.3.0 Documentation
Making handle lifespan shorter than that of the native method ... Open hello-world.js in any preferred text editor and paste in the following...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found