Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/vuejs/core
/ setup
Function
setup
packages/runtime-core/__tests__/componentEmits.spec.ts:128–131 ·
view source on GitHub ↗
(_, { emit })
Source
from the content-addressed store, hash-verified
126
test(
'should trigger array of listeners'
,
async
() => {
127
const
Child = defineComponent({
128
setup(_, { emit }) {
129
emit(
'foo'
, 1)
130
return
() => h(
'div'
)
131
},
132
})
133
134
const
fn1 = vi.fn()
Callers
nothing calls this directly
Calls
2
h
Function · 0.85
emit
Function · 0.50
Tested by
no test coverage detected