Skip to content

Conversation

@itsisak
Copy link
Contributor

@itsisak itsisak commented Oct 18, 2025

Description

React enzyme is dead. It does not support react18. We have previously worked around this by using a sketchy enzyme adapter. This is a bad solution and I dont think it works 100% properly.

In my PR updating CommentsView (#5577) the current tests says that the component is not being rendered properly. When writing sort of similar tests in cypress, it works.

So it might be time to start getting rid of enzyme.

Testing

  • I have thoroughly tested my changes.

Resolves ABA-1580

@itsisak itsisak requested a review from a team October 18, 2025 14:23
@itsisak itsisak self-assigned this Oct 18, 2025
@itsisak itsisak added the technical-debt Pull requests that reduces technical debt label Oct 18, 2025
@linear
Copy link

linear bot commented Oct 18, 2025

@github-actions github-actions bot added the review-needed Pull requests that need review label Oct 18, 2025
@itsisak itsisak marked this pull request as ready for review October 18, 2025 17:02
Copy link
Contributor

@ch0rizo ch0rizo left a comment

Choose a reason for hiding this comment

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

Test test test

@itsisak itsisak requested a review from a team October 22, 2025 11:05
@itsisak itsisak changed the title Migrate component tests from enzyme to cypress Migrate component tests to cypress Oct 22, 2025
Copy link
Contributor

@magnusbrecke magnusbrecke left a comment

Choose a reason for hiding this comment

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

lgtm

@itsisak itsisak merged commit 47d5105 into master Oct 27, 2025
7 checks passed
@itsisak itsisak deleted the remove-enzyme branch October 27, 2025 14:33
@itsisak itsisak mentioned this pull request Oct 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review-needed Pull requests that need review technical-debt Pull requests that reduces technical debt

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants