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

Method upload

packages/browser-preview/src/locators.ts:68–71  ·  view source on GitHub ↗
(file: string | string[] | File | File[], options?: UserEventUploadOptions)

Source from the content-addressed store, hash-verified

66 }
67
68 async upload(file: string | string[] | File | File[], options?: UserEventUploadOptions): Promise<void> {
69 const element = await this.findElement(options)
70 return userEvent.upload(element, file)
71 }
72
73 async wheel(options: UserEventWheelOptions): Promise<void> {
74 const element = await this.findElement(options)

Callers

nothing calls this directly

Calls 2

findElementMethod · 0.80
uploadMethod · 0.65

Tested by

no test coverage detected