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

housekeeping: Resets all Globals before each test #5851

Merged
merged 5 commits into from
Nov 25, 2024

Conversation

yhabib
Copy link
Contributor

@yhabib yhabib commented Nov 25, 2024

Motivation

In line with #5788, this PR ensures that all globals are restored before each test.

Changes

  • Moves unstubAllGlobals to vitest.setup.ts.

Tests

All tests pass.

Todos

  • Add entry to changelog (if necessary).
    Not necessary.

frontend/vitest.setup.ts Outdated Show resolved Hide resolved
@yhabib yhabib marked this pull request as ready for review November 25, 2024 12:36
@yhabib yhabib requested a review from a team as a code owner November 25, 2024 12:36
dskloetd
dskloetd previously approved these changes Nov 25, 2024
frontend/vitest.setup.ts Outdated Show resolved Hide resolved
@yhabib yhabib enabled auto-merge November 25, 2024 14:27
@yhabib yhabib disabled auto-merge November 25, 2024 14:27
@yhabib yhabib enabled auto-merge November 25, 2024 14:38
@yhabib yhabib requested a review from dskloetd November 25, 2024 14:39
@yhabib yhabib added this pull request to the merge queue Nov 25, 2024
Merged via the queue into main with commit 5922fae Nov 25, 2024
30 checks passed
@yhabib yhabib deleted the yhabib/housekeeping/global-unstub-all-globals branch November 25, 2024 14:53
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