Skip to content

fix(react): remove setupTests and update test with it's logic#1489

Merged
gedinakova merged 7 commits intomasterfrom
hhristov/move-test-setup-logic-for-react
Feb 11, 2026
Merged

fix(react): remove setupTests and update test with it's logic#1489
gedinakova merged 7 commits intomasterfrom
hhristov/move-test-setup-logic-for-react

Conversation

@Hristo313
Copy link
Contributor

@Hristo313 Hristo313 commented Feb 10, 2026

Part of #2230
Remove setupTests file from vite config and move it's logic to each test component

@coveralls
Copy link

coveralls commented Feb 10, 2026

Coverage Status

coverage: 70.369%. remained the same
when pulling 54231c3 on hhristov/move-test-setup-logic-for-react
into d40851c on master.

import ResizeObserver from 'resize-observer-polyfill';

beforeAll(() => {
globalThis.ResizeObserver = ResizeObserver;
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we abstract this repetitive logic (lines 7 - 12) into a util method and just call it everywhere needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@Hristo313 Hristo313 requested a review from wnvko February 10, 2026 18:21
@wnvko wnvko requested a review from gedinakova February 11, 2026 09:52
@gedinakova gedinakova merged commit bd1f0ba into master Feb 11, 2026
3 checks passed
@gedinakova gedinakova deleted the hhristov/move-test-setup-logic-for-react branch February 11, 2026 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants