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

#16 Optimize unit tests for packages/ui #19

Merged
merged 1 commit into from
Jun 22, 2023

Conversation

nevendyulgerov
Copy link
Contributor

Optimized speed of unit tests for packages/ui by refactoring imports.

Before the changes:
Screenshot 2023-06-18 at 19 38 25

After the changes:
Screenshot 2023-06-18 at 19 37 39

@nevendyulgerov nevendyulgerov added the type:refactor A code change that neither fixes a bug nor adds a feature label Jun 18, 2023
@nevendyulgerov nevendyulgerov self-assigned this Jun 18, 2023
@vercel
Copy link

vercel bot commented Jun 18, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
rollups ✅ Ready (Inspect) Visit Preview Jun 18, 2023 4:41pm
staking ✅ Ready (Inspect) Visit Preview Jun 18, 2023 4:41pm

@nevendyulgerov nevendyulgerov linked an issue Jun 18, 2023 that may be closed by this pull request
5 tasks
@coveralls
Copy link

Pull Request Test Coverage Report for Build 5304714552

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage decreased (-0.02%) to 70.987%

Files with Coverage Reduction New Missed Lines %
packages/ui/src/components/Fonts.tsx 1 0%
Totals Coverage Status
Change from base Build 5284009784: -0.02%
Covered Lines: 2534
Relevant Lines: 3403

💛 - Coveralls

Copy link
Contributor

@dandheedge dandheedge left a comment

Choose a reason for hiding this comment

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

LGTM!

@@ -22,12 +21,11 @@ const defaultWallet = {
deactivate: () => Promise.resolve(),
};

const Component = withChakraTheme<ConnectWalletProps>(ConnectWallet);
Copy link
Contributor

Choose a reason for hiding this comment

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

Is changing the props type on Component make the test performance faster?

@brunomenezes brunomenezes merged commit 4b396f8 into main Jun 22, 2023
5 checks passed
@brunomenezes brunomenezes deleted the refactor/16-optimize-unit-tests-for-packages-ui branch June 22, 2023 06:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:refactor A code change that neither fixes a bug nor adds a feature
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Optimize unit tests for packages/ui
4 participants