Skip to content

Commit

Permalink
feat: allow accessing "vi" methods without context, don't fail when m…
Browse files Browse the repository at this point in the history
…ocker is not available (#3047)
  • Loading branch information
sheremet-va committed Mar 20, 2023
1 parent 9150a26 commit 1531c42
Show file tree
Hide file tree
Showing 3 changed files with 290 additions and 238 deletions.
2 changes: 1 addition & 1 deletion packages/browser/package.json
Expand Up @@ -46,8 +46,8 @@
},
"devDependencies": {
"@types/ws": "^8.5.4",
"@vitest/ws-client": "workspace:*",
"@vitest/ui": "workspace:*",
"@vitest/ws-client": "workspace:*",
"rollup": "^2.79.1",
"vitest": "workspace:*"
}
Expand Down
2 changes: 0 additions & 2 deletions packages/browser/src/client/main.ts
Expand Up @@ -59,8 +59,6 @@ ws.addEventListener('open', async () => {
rpc: client.rpc,
}

// @ts-expect-error mocking vitest apis
globalThis.__vitest_mocker__ = {}
const paths = getQueryPaths()

const iFrame = document.getElementById('vitest-ui') as HTMLIFrameElement
Expand Down

0 comments on commit 1531c42

Please sign in to comment.