Skip to content
This repository was archived by the owner on Dec 18, 2024. It is now read-only.

Chore: upgrade dependencies#602

Merged
ThisIsMissEm merged 11 commits intomainfrom
chore/upgrade-dependencies
Apr 12, 2022
Merged

Chore: upgrade dependencies#602
ThisIsMissEm merged 11 commits intomainfrom
chore/upgrade-dependencies

Conversation

@ThisIsMissEm
Copy link
Contributor

This upgrades the Inrupt SDKs to the latest versions, migrates us to use user-event from react testing-library (the now recommended way for testing interactions in unit tests). Also upgraded is swr which was heavily out of date.

Additionally we should now support react 18 without problems (hopefully), and audit issues should be resolved.

Also fixes a few bugs uncovered whilst doing that upgrade where e.preventDefault() wasn't called on events from Button elements.
This runs the jest tests in-band and with the inspector available
@ThisIsMissEm ThisIsMissEm requested review from a team as code owners April 11, 2022 20:52
Really I just disabled most of them to be just warnings because it's not in scope to fix them
Storybook is always with vulnerability
Copy link
Contributor

@NSeydoux NSeydoux left a comment

Choose a reason for hiding this comment

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

I'm probably ot in the best position to assess the quality of the unit tests of React components, but this looks like a massive improvement over what was there previously.

"no-shadow": "warn",
"react/require-default-props": "warn",
"react/default-props-match-prop-types": "warn",
noImplicitAny: "off",
Copy link
Contributor

Choose a reason for hiding this comment

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

You win this round JS ^^

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hey, there were just too many to change and it was mostly in the tests.

@ThisIsMissEm ThisIsMissEm merged commit 033d141 into main Apr 12, 2022
@ThisIsMissEm ThisIsMissEm deleted the chore/upgrade-dependencies branch April 12, 2022 10:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants