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

Replace window timer with injected timer #601

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Replace window timer with injected timer #601

wants to merge 1 commit into from

Conversation

Abban
Copy link
Member

@Abban Abban commented Oct 31, 2024

Components that use timers are hard to test. This
removed the window timers and replaces them with
an interface that we can mock.

Ticket: https://phabricator.wikimedia.org/T378589

Copy link
Member

@gbirke gbirke left a comment

Choose a reason for hiding this comment

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

This is a great change! Moving global functions with side effects to dependencies is looking very good.

@Abban Abban force-pushed the timer branch 2 times, most recently from 6418d97 to c27677e Compare November 7, 2024 08:46
@Abban Abban marked this pull request as ready for review November 7, 2024 08:46
@Abban Abban requested a review from gbirke November 7, 2024 08:47
Components that use timers are hard to test. This
removed the window timers and replaces them with
an interface that we can mock.

Updates all tests and banners to use the new timer.

Ticket: https://phabricator.wikimedia.org/T378589
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

Successfully merging this pull request may close these issues.

2 participants