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

chore: move to latest release of @bladelabs/blade-web3.js. #812

Merged
merged 1 commit into from
Dec 21, 2023

Conversation

ericleponner
Copy link
Collaborator

Description:

Changes below update release of @blandelabs/blade-web3 from 1.1.1 to 1.2.2.

Straight move to 1.2.2 release breaks all unit tests.
After investigations, it turns out that import @blandelabs/blade-web3.js now executes some code with dependency on window.matchMedia(). Although vitest is setup to mock window.matchMedia() (see globalSetup.js), it does not prevent crashing.
To avoid that, WalletDriver_Blade class now performs a dynamic import of @blandelabs/blade-web3.js.

Related issue(s):

None

Checklist

  • Documented (Code comments, README, etc.)
  • Tested (unit, integration, etc.)

@ericleponner ericleponner requested a review from svienot December 20, 2023 11:10
Copy link

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 88.23% 32647 / 37000
🔵 Statements 88.23% 32647 / 37000
🔵 Functions 66.72% 788 / 1181
🔵 Branches 84.34% 3647 / 4324
File Coverage
File Stmts % Branch % Funcs % Lines Uncovered Lines
Changed Files
src/utils/wallet/WalletDriver_Blade.ts 40.88% 100% 20% 40.88% 52-88, 91-101, 104-105, 112-122, 125-132, 139-152, 155-170, 173-180
Generated in workflow #604

@ericleponner ericleponner changed the title Moved to latest release of @bladelabs/blade-web3.js. chore: move to latest release of @bladelabs/blade-web3.js. Dec 20, 2023
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions

0.0% Coverage on New Code (required ≥ 80%)

See analysis details on SonarCloud

@ericleponner ericleponner merged commit c588502 into main Dec 21, 2023
6 of 7 checks passed
@ericleponner ericleponner deleted the blade_upgrade branch December 21, 2023 11:45
svienot added a commit that referenced this pull request Jan 8, 2024
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.

2 participants