MCPcopy
hub / github.com/vitest-dev/vitest / setup

Function setup

packages/browser/src/client/tester/context.ts:53–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

51
52 const userEvent: UserEvent = {
53 setup() {
54 return createUserEvent()
55 },
56 cleanup() {
57 // avoid cleanup rpc call if there is nothing to cleanup
58 if (!keyboard.unreleased.length) {

Callers

nothing calls this directly

Calls 2

createUserEventFunction · 0.85
createPreviewUserEventFunction · 0.85

Tested by

no test coverage detected