Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open Handle #370

Open
BijanRegmi opened this issue May 11, 2024 · 0 comments
Open

Open Handle #370

BijanRegmi opened this issue May 11, 2024 · 0 comments

Comments

@BijanRegmi
Copy link

While running tests with jest, it detects open handle.

└──> $ npm run test

> css-inline@1.0.0 test
> jest --detectOpenHandles --config ./jest.config.js

 PASS  ./test.spec.js (10.133 s)
  css-inline
    ✓ nop (6 ms)

Test Suites: 1 passed, 1 total
Tests:       1 passed, 1 total
Snapshots:   0 total
Time:        10.173 s, estimated 11 s
Ran all test suites.

Jest has detected the following 1 open handle potentially keeping Jest from exiting:

  ●  CustomGC

    > 1 | const { inline } = require("@css-inline/css-inline");
        |                    ^
      2 |
      3 | describe("css-inline", () => {
      4 |     jest.setTimeout(30000);

      at Runtime._loadModule (node_modules/jest-runtime/build/index.js:1018:29)
      at Object.<anonymous> (node_modules/@css-inline/css-inline/index.js:190:31)
      at Object.require (test.spec.js:1:20)

I have linked minimal reproduction repo here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant