[Bug]: Jest open handles after upgrade from angular v12 to v13
See original GitHub issueVersion
11.1.2
Steps to reproduce
- Clone https://github.com/SimonMueller/jest-preset-angular-open-handle-reproduction
- Run
npm i
- Run
npm t
- 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:
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:
- Created a year ago
- Reactions:9
- Comments:14
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It seems that the problem is related to this library, not to Angular.
https://github.com/angular/angular/issues/45776#issuecomment-1143113716
Hello, same error with angular v14