Skip to content

Conversation

@johnny-quesada-developer
Copy link
Contributor

@johnny-quesada-developer johnny-quesada-developer commented Oct 29, 2025

What is this PR doing?

This pull request introduces the proper cleanups after each test to ensure that all mocks and global states are reset.
By enforcing isolation at the test environment level, we can immediately detect tests that rely on shared state or unclean mocks.

This change:

  • Eliminates wasted debugging time caused by false test failures
  • Ensures deterministic test results
  • Improves confidence in test outcomes
  • Highlights tests that need refactoring to meet proper isolation standards

Once merged, this will make our Vitest suite more stable, maintainable, and aligned with industry best practices for React unit testing.

How should this be manually tested?

Check nothing is broken and tests are passing

What are the relevant tickets?

Resolves VIDSOL-280

Checklist

[x] Branch is based on develop (not main).
[ ] Resolves a Known Issue.
[ ] If yes, did you remove the item from the docs/KNOWN_ISSUES.md?
[ ] Resolves an item reported in Issues.
If yes, which issue? Issue Number?

@johnny-quesada-developer johnny-quesada-developer changed the title VIDSOL-211-fixing unit test isolation VIDSOL-211-WEB-aliases-and-configuration-updates Oct 29, 2025
@johnny-quesada-developer johnny-quesada-developer changed the title VIDSOL-211-WEB-aliases-and-configuration-updates VIDSOL-211: WEB-aliases-and-configuration-updates Oct 29, 2025
@johnny-quesada-developer johnny-quesada-developer force-pushed the johnny/vidsol-280-unit-test-fixes-and-refinements branch from d74028e to a0d05c8 Compare October 29, 2025 22:14
@OscarFava OscarFava changed the title VIDSOL-211: WEB-aliases-and-configuration-updates VIDSOL-280: Unit test fixes and refinements Oct 30, 2025
Base automatically changed from johnny/VIDSOL-279-WEB-aliases-and-configuration-updates to develop October 30, 2025 10:22
@johnny-quesada-developer johnny-quesada-developer changed the title VIDSOL-280: Unit test fixes and refinements VIDSOL-280: Unit test fixes and configuration refinements Oct 30, 2025
@johnny-quesada-developer johnny-quesada-developer force-pushed the johnny/vidsol-280-unit-test-fixes-and-refinements branch from a0d05c8 to 18a230d Compare October 30, 2025 10:27
OscarFava
OscarFava previously approved these changes Oct 30, 2025
Copy link
Contributor

@OscarFava OscarFava left a comment

Choose a reason for hiding this comment

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

LGTM!

@johnny-quesada-developer johnny-quesada-developer force-pushed the johnny/vidsol-280-unit-test-fixes-and-refinements branch from 18a230d to a0d05c8 Compare October 30, 2025 15:16
@behei-vonage
Copy link
Contributor

fyi, some merge conflicts

@johnny-quesada-developer johnny-quesada-developer dismissed OscarFava’s stale review October 31, 2025 11:19

The merge-base changed after approval.

@johnny-quesada-developer johnny-quesada-developer force-pushed the johnny/vidsol-280-unit-test-fixes-and-refinements branch from a0d05c8 to 6d8ac7f Compare October 31, 2025 11:19
Copy link
Contributor

@OscarFava OscarFava left a comment

Choose a reason for hiding this comment

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

LGTM!

@johnny-quesada-developer
Copy link
Contributor Author

fyi, some merge conflicts

Thanks! I already rebase with develop

@johnny-quesada-developer johnny-quesada-developer force-pushed the johnny/vidsol-280-unit-test-fixes-and-refinements branch from 6d8ac7f to d3f10b6 Compare November 3, 2025 14:33
Copy link
Contributor

@behei-vonage behei-vonage left a comment

Choose a reason for hiding this comment

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

LGTM

@johnny-quesada-developer johnny-quesada-developer force-pushed the johnny/vidsol-280-unit-test-fixes-and-refinements branch from d3f10b6 to f973b34 Compare November 5, 2025 10:29
Unit tests were not isolated, tests were unstable, and reliability was compromised.
@johnny-quesada-developer johnny-quesada-developer force-pushed the johnny/vidsol-280-unit-test-fixes-and-refinements branch from f973b34 to b7db2f7 Compare November 6, 2025 09:52
@sonarqubecloud
Copy link

sonarqubecloud bot commented Nov 6, 2025

@johnny-quesada-developer johnny-quesada-developer removed the request for review from VZaphod November 6, 2025 10:31
Copy link

@rserebrennykov rserebrennykov left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@VZaphod VZaphod left a comment

Choose a reason for hiding this comment

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

LGTM

@johnny-quesada-developer johnny-quesada-developer merged commit f7cdea2 into develop Nov 6, 2025
7 checks passed
@johnny-quesada-developer johnny-quesada-developer deleted the johnny/vidsol-280-unit-test-fixes-and-refinements branch November 6, 2025 13:05
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.

6 participants