File tree Expand file tree Collapse file tree 1 file changed +1
-14
lines changed
packages/browser/src/client/public Expand file tree Collapse file tree 1 file changed +1
-14
lines changed Original file line number Diff line number Diff line change 1
- import { channel , client } from '@vitest/browser/client'
1
+ import { client } from '@vitest/browser/client'
2
2
3
3
function serializeError ( unhandledError ) {
4
4
const state = globalThis . __vitest_worker__
@@ -69,19 +69,6 @@ async function reportUnexpectedError(
69
69
await client . waitForConnection ( ) . then ( ( ) => {
70
70
return client . rpc . onUnhandledError ( processedError , type )
71
71
} ) . catch ( console . error )
72
- const state = __vitest_browser_runner__
73
-
74
- if ( state . type === 'orchestrator' ) {
75
- return
76
- }
77
-
78
- if ( ! state . runTests || ! __vitest_worker__ . current ) {
79
- channel . postMessage ( {
80
- // TODO: what to do in this case now?
81
- event : 'response:???' ,
82
- iframeId : state . iframeId ,
83
- } )
84
- }
85
72
}
86
73
87
74
registerUnexpectedErrors ( )
You can’t perform that action at this time.
0 commit comments