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

Enzyme tests returning improper teardown error in Chart component. #10

Open
hydrotik opened this issue Apr 18, 2020 · 1 comment
Open
Assignees
Labels
bug Something isn't working

Comments

@hydrotik
Copy link
Owner

Getting error:

A worker process has failed to exit gracefully and has been force exited. This is likely caused by tests leaking due to improper teardown. Try running with --runInBand --detectOpenHandles to find leaks.

Added:

"test": "jest --forceExit --runInBand --detectOpenHandles"

Attempting to garbage collect dom references.

Without --forceExit test hangs. Will try with leaked-handles

Implementing some solutions found here:
jestjs/jest#9473

@hydrotik hydrotik added the bug Something isn't working label Apr 18, 2020
@hydrotik hydrotik self-assigned this Apr 18, 2020
@hydrotik
Copy link
Owner Author

Adding leaked-handles getting output of:

tcp stream {
  fd: 20,
  readable: false,
  writable: true,
  address: {},
  serverAddr: null
}

tcp stream {
  fd: 22,
  readable: false,
  writable: true,
  address: {},
  serverAddr: null
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant