Skip to content

Commit

Permalink
Bump Snaps dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
FrederikBolding committed Nov 1, 2024
1 parent a521892 commit 41396c6
Show file tree
Hide file tree
Showing 3 changed files with 324 additions and 297 deletions.
7 changes: 3 additions & 4 deletions packages/snap/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@
"test": "jest"
},
"dependencies": {
"@metamask/snaps-sdk": "^6.1.1",
"buffer": "^6.0.3"
"@metamask/snaps-sdk": "^6.10.0"
},
"devDependencies": {
"@jest/globals": "^29.5.0",
Expand All @@ -37,8 +36,8 @@
"@metamask/eslint-config-jest": "^12.1.0",
"@metamask/eslint-config-nodejs": "^12.1.0",
"@metamask/eslint-config-typescript": "^12.1.0",
"@metamask/snaps-cli": "^6.2.1",
"@metamask/snaps-jest": "^8.2.0",
"@metamask/snaps-cli": "^6.5.2",
"@metamask/snaps-jest": "^8.7.0",
"@types/react": "18.2.4",
"@types/react-dom": "18.2.4",
"@typescript-eslint/eslint-plugin": "^5.42.1",
Expand Down
4 changes: 2 additions & 2 deletions packages/snap/src/index.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { expect } from '@jest/globals';
import { installSnap } from '@metamask/snaps-jest';
import { SnapConfirmationInterface, installSnap } from '@metamask/snaps-jest';

Check failure on line 2 in packages/snap/src/index.test.tsx

View workflow job for this annotation

GitHub Actions / Build, lint, and test / Lint

Import "SnapConfirmationInterface" is only used as types
import { Box, Text, Bold } from '@metamask/snaps-sdk/jsx';

describe('onRpcRequest', () => {
Expand All @@ -13,7 +13,7 @@ describe('onRpcRequest', () => {
origin,
});

const ui = await response.getInterface();
const ui = await response.getInterface() as SnapConfirmationInterface;

Check failure on line 16 in packages/snap/src/index.test.tsx

View workflow job for this annotation

GitHub Actions / Build, lint, and test / Lint

Replace `await·response.getInterface(` with `(await·response.getInterface()`
expect(ui.type).toBe('confirmation');
expect(ui).toRender(
<Box>
Expand Down
Loading

0 comments on commit 41396c6

Please sign in to comment.