mirror of
https://github.com/hanzoai/vitest.git
synced 2026-10-30 14:46:34 +00:00
Co-authored-by: Hiroshi Ogawa <[email protected]> Co-authored-by: OpenCode (claude-opus-4-8) <[email protected]>
11 lines
339 B
TypeScript
11 lines
339 B
TypeScript
import { test } from 'vitest'
|
|
import { userEvent } from 'vitest/browser'
|
|
|
|
test('upload denied path', async () => {
|
|
const input = document.createElement('input')
|
|
input.type = 'file'
|
|
document.body.append(input)
|
|
// the file exists in the project, but is denied via `server.fs.deny`
|
|
await userEvent.upload(input, 'my-secret.txt')
|
|
})
|