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

Add a test that the timer is removed after unmount? #7

Open
alexkrolick opened this issue May 3, 2019 · 1 comment
Open

Add a test that the timer is removed after unmount? #7

alexkrolick opened this issue May 3, 2019 · 1 comment

Comments

@alexkrolick
Copy link

Just a thought 😄. Probably want to test that no dangling intervals or timeouts are left behind after unmount.

@donavon
Copy link
Owner

donavon commented May 3, 2019

good thought. looks like there is a jest.getTimerCount() that I can use for just that purpose.

'cuz, ya know, you can't have too many tests for a 10 line package ☺️

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

2 participants