Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/vitest-dev/vitest
/ basic.test.ts
File
basic.test.ts
test/browser/fixtures/worker/src/basic.test.ts:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import
{ expect, test } from
'vitest'
2
3
test(
'worker dynamic dep'
,
async
() => {
4
const
worker =
new
Worker(
new
URL(
'./worker'
,
import
.meta.url), {
type
:
'module'
});
Callers
nothing calls this directly
Calls
5
addEventListener
Method · 0.80
test
Function · 0.50
resolve
Function · 0.50
reject
Function · 0.50
postMessage
Method · 0.45
Tested by
no test coverage detected