Skip to content

Commit

Permalink
bump dotconnect to have no uncaught exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
Tbaut committed Nov 5, 2024
1 parent 10e7211 commit 037bea2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 17 deletions.
10 changes: 0 additions & 10 deletions packages/ui/cypress/tests/login.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,6 @@ describe('Connect Account', () => {
// this request should be from the application Multix
cy.wrap(requests[0].origin).should('eq', MULTIX_DAPP_NAME)

// it is expected for now to have an unhandled exception from dot-connect
// upon rejection of the auth request
cy.on('uncaught:exception', (err) => {
expect(err.message).to.include('Cancelled')

// return false to prevent the error from
// failing this test
return false
})

// auth is rejected
cy.rejectAuth(requests[0].id, 'Cancelled')
landingPage
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"@types/react-router-dom": "^5.3.3",
"@walletconnect/web3wallet": "^1.11.2",
"dayjs": "^1.11.10",
"dot-connect": "^0.11.0",
"dot-connect": "^0.12.0",
"graphql": "^16.8.1",
"graphql-request": "^6.1.0",
"graphql-ws": "^5.16.0",
Expand Down
12 changes: 6 additions & 6 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7660,9 +7660,9 @@ __metadata:
languageName: node
linkType: hard

"dot-connect@npm:^0.11.0":
version: 0.11.0
resolution: "dot-connect@npm:0.11.0"
"dot-connect@npm:^0.12.0":
version: 0.12.0
resolution: "dot-connect@npm:0.12.0"
dependencies:
"@lit-labs/preact-signals": ^1.0.2
"@lit/react": ^1.0.6
Expand All @@ -7671,12 +7671,12 @@ __metadata:
lit: ^3.2.1
qrcode: ^1.5.4
peerDependencies:
"@reactive-dot/core": "*"
"@reactive-dot/core": ">= 0.25.1"
react: ">= 18"
peerDependenciesMeta:
react:
optional: true
checksum: 1d47846f722bd48b439f21ea0ccb5d813f8c75e9ed21108c9a14fa5cfbd0ac5038659f4a11a225bd5118d2c44dea05bbc4e7aa06817af6db53b74146879e525d
checksum: 679715ad5603054056a29c6b229fb2c64b9a14a87b51d6e04797915fec7d58ccbd5c40a6126406091ec8772e4a0813159a7d80adea3b9264fd46627fe05e1f83
languageName: node
linkType: hard

Expand Down Expand Up @@ -10971,7 +10971,7 @@ __metadata:
cypress: ^13.12.0
cypress-wait-until: ^3.0.1
dayjs: ^1.11.10
dot-connect: ^0.11.0
dot-connect: ^0.12.0
eslint: ^8.57.0
eslint-config-prettier: ^9.1.0
eslint-plugin-cypress: ^2.15.2
Expand Down

0 comments on commit 037bea2

Please sign in to comment.