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

Function upload

packages/browser/src/client/tester/context.ts:90–92  ·  view source on GitHub ↗
(element, files: string | string[] | File | File[], options)

Source from the content-addressed store, hash-verified

88 return convertToLocator(element).unhover(options)
89 },
90 upload(element, files: string | string[] | File | File[], options) {
91 return convertToLocator(element).upload(files, options)
92 },
93
94 // non userEvent events, but still useful
95 fill(element, text, options) {

Callers

nothing calls this directly

Calls 5

convertToLocatorFunction · 0.85
fetchFunction · 0.85
toElementFunction · 0.85
allMethod · 0.80
uploadMethod · 0.65

Tested by

no test coverage detected