Skip to content

Commit

Permalink
Solve test issues appeared after SDK upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
elboletaire committed Sep 15, 2023
1 parent 2c55f06 commit 6266543
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"jest": "^29.6.2",
"jest-environment-jsdom": "^29.6.2",
"jest-watch-typeahead": "^2.2.2",
"msw": "^1.2.5",
"msw": "^1.3.0",
"prettier": "^2.8.7",
"turbo": "^1.8.6"
},
Expand Down
5 changes: 4 additions & 1 deletion packages/react-providers/src/client/ClientProvider.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,12 @@ describe('<ClientProvider />', () => {
// @ts-ignore
rerender({ signer: newsigner })

await waitFor(() => {
expect(result.current.client.wallet).toEqual(newsigner)
})

expect(result.current.signer).not.toEqual(signer)
expect(result.current.signer).toEqual(newsigner)
expect(result.current.client.wallet).toEqual(newsigner)
// ensure env has not changed after changing the signer
expect(result.current.env).toEqual('dev')
expect(result.current.client.url).toEqual(ApiUrl.dev)
Expand Down

0 comments on commit 6266543

Please sign in to comment.