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

Memory leak #28

Open
rthreei opened this issue Jan 10, 2022 · 0 comments
Open

Memory leak #28

rthreei opened this issue Jan 10, 2022 · 0 comments

Comments

@rthreei
Copy link

rthreei commented Jan 10, 2022

Memory leak as reported by jest --detectLeaks.

Steps to reproduce:

  1. git clone [email protected]:gribnoysup/setup-polly-jest.git
  2. npm install
  3. npm install weak-napi (required jest --detectLeaks)
  4. npx jest -c ./test/jest-circus-integration.config.json --verbose --detectLeaks

Output:

 FAIL  test/integration/jest-common/test-skip.test.js
  ● Test suite failed to run

    EXPERIMENTAL FEATURE!
    Your test suite is leaking memory. Please ensure all references are cleaned.

    There is a number of things that can leak memory:
      - Async operations that have not finished (e.g. fs.readFile).
      - Timers not properly mocked (e.g. setInterval, setTimeout).
      - Keeping references to the global scope.

      at onResult (node_modules/@jest/core/build/TestScheduler.js:190:18)
          at Array.map (<anonymous>)
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