Skip to content

Commit

Permalink
fix: dependencies issues
Browse files Browse the repository at this point in the history
  • Loading branch information
matstyler committed Jul 9, 2024
1 parent 211ed62 commit c6b098e
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 8 deletions.
2 changes: 1 addition & 1 deletion examples/new-dawn/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"devDependencies": {
"@metamask/test-dapp": "8.1.0",
"@types/node": "20.11.17",
"cypress": "13.9.0",
"cypress": "13.13.0",
"serve": "14.2.1",
"typescript": "5.3.3"
}
Expand Down
3 changes: 2 additions & 1 deletion examples/new-dawn/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"skipLibCheck": true
"skipLibCheck": true,
"types": ["cypress"]
},
"include": ["test"],
"files": ["environment.d.ts"]
Expand Down
4 changes: 2 additions & 2 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions wallets/metamask/test/cypress/addNewAccount.cy.ts

This file was deleted.

12 changes: 12 additions & 0 deletions wallets/metamask/test/cypress/metamask.cy.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
it('should connect to ethereum', () => {
cy.window().then((window) => {
// @ts-ignore
window.ethereum
.request({
method: 'eth_chainId'
})
.then((currentChainId: string) => {
expect(currentChainId).to.equal('0x1')
})
})
})
3 changes: 2 additions & 1 deletion wallets/metamask/test/unit/prepareExtension.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import * as core from '@synthetixio/synpress-cache'
import { afterAll, afterEach, describe, expect, it, vi } from 'vitest'
import { DEFAULT_METAMASK_VERSION, EXTENSION_DOWNLOAD_URL, prepareExtension } from '../..'

import { prepareExtension, DEFAULT_METAMASK_VERSION, EXTENSION_DOWNLOAD_URL } from '../../src/prepareExtension'

const MOCK_CACHE_DIR_PATH = 'mockCacheDirPath'
const MOCK_EXTENSION_ARCHIVE_PATH = 'mockExtensionArchivePath'
Expand Down

0 comments on commit c6b098e

Please sign in to comment.