You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After upgrading from 9.0.0 to 9.3.5, tests are randomly reporting: "Jest did not exit one second after the test run has completed."
After running with --detectOpenHandles
Jest has detected the following 1 open handle potentially keeping Jest from exiting:
● CustomGC
> 1 | import { Test } from '@nestjs/testing';
| ^
2 |
3 | Test.createTestingModule({});
4 |
at Runtime._loadModule (../../node_modules/jest-runtime/build/index.js:1218:29)
at Object.<anonymous> (../../node_modules/@node-rs/xxhash/index.js:64:29)
at Object.<anonymous> (../../node_modules/@nestjs/core/inspector/deterministic-uuid-registry.js:4:18)
at Object.<anonymous> (../../node_modules/@nestjs/core/injector/instance-wrapper.js:11:24)
at Object.<anonymous> (../../node_modules/@nestjs/core/injector/injector.js:14:28)
at Object.<anonymous> (../../node_modules/@nestjs/core/injector/module-ref.js:8:20)
at Object.<anonymous> (../../node_modules/@nestjs/core/injector/lazy-module-loader/lazy-module-loader.js:5:22)
at Object.<anonymous> (../../node_modules/@nestjs/core/inspector/serialized-graph.js:8:30)
at Object.<anonymous> (../../node_modules/@nestjs/core/injector/container.js:6:28)
at Object.<anonymous> (../../node_modules/@nestjs/testing/testing-module.builder.js:6:21)
at Object.<anonymous> (../../node_modules/@nestjs/testing/test.js:5:34)
at Object.<anonymous> (../../node_modules/@nestjs/testing/index.js:11:22)
at Object.<anonymous> (test/foo.spec.ts:1:1)
Investigating further, noticed this recent change d323edb
So I tried to run xxh32 directly:
Jest has detected the following 1 open handle potentially keeping Jest from exiting:
> 1 | import { xxh32 } from '@node-rs/xxhash';
| ^
2 | xxh32('foobarbaz');
3 | //import { Test } from '@nestjs/testing';
4 |
at Runtime._loadModule (../../node_modules/jest-runtime/build/index.js:1218:29)
at Object.<anonymous> (../../node_modules/@node-rs/xxhash/index.js:64:29)
at Object.<anonymous> (test/foo.spec.ts:1:1)
So I assume it's due to the uuid -> xxhash change.
Minimum reproduction code
No response
Input code
No response
Expected behavior
Jest exits properly.
Other
No response
The text was updated successfully, but these errors were encountered:
Hi, thank you for the prompt response. I would just like to point out that while this issue is caused by the same change, it's not related to the deployment process as #11071 and can't be fixed as such. So introducing the package in nestjs 10 as suggested is potentially still a problem.
Did you read the migration guide?
Is there an existing issue that is already proposing this?
Potential Commit/PR that introduced the regression
d323edb
NestJS version
9.0.0 -> 9.3.5
Describe the regression
After upgrading from 9.0.0 to 9.3.5, tests are randomly reporting: "Jest did not exit one second after the test run has completed."
After running with
--detectOpenHandles
Investigating further, noticed this recent change
d323edb
So I tried to run
xxh32
directly:producing similar output
So I assume it's due to the uuid -> xxhash change.
Minimum reproduction code
No response
Input code
No response
Expected behavior
Jest exits properly.
Other
No response
The text was updated successfully, but these errors were encountered: