Skip to content

chore(setImmediate): use global.setImmediate instead of timers.setImmediate#1270

Merged
gr2m merged 1 commit intonock:masterfrom
taylor1791:chore/setImmediate
Dec 14, 2018
Merged

chore(setImmediate): use global.setImmediate instead of timers.setImmediate#1270
gr2m merged 1 commit intonock:masterfrom
taylor1791:chore/setImmediate

Conversation

@taylor1791
Copy link
Copy Markdown
Contributor

When unit testing, it is not uncommon to mock the clock. This includes controlling when setImmediate fires. By using global.setImmediate, we adhere to this expectation. This also avoids consumers having to mock the timers module.

Resolves #677

…ediate

When unit testing, it is not uncommon to mock the clock. This includes
controlling when setImmediate fires. By using global.setImmediate, we
adhere to this expectation. This also avoids consumers having to mock
the timers module.

Resolves #677
Copy link
Copy Markdown
Member

@gr2m gr2m left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks Taylor 💐

@nockbot
Copy link
Copy Markdown
Collaborator

nockbot commented Dec 18, 2018

🎉 This PR is included in version 11.0.0-beta.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@nockbot
Copy link
Copy Markdown
Collaborator

nockbot commented Dec 23, 2018

🎉 This PR is included in version 10.0.5 🎉

The release is available on:

Your semantic-release bot 📦🚀

@lock
Copy link
Copy Markdown

lock bot commented Jan 6, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue and add a reference to this one if it’s related. Thank you!

@lock lock bot locked as resolved and limited conversation to collaborators Jan 6, 2019
@nockbot
Copy link
Copy Markdown
Collaborator

nockbot commented Aug 13, 2019

🎉 This PR is included in version 11.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants