Files
2026-07-01 08:08:48 +02:00

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')
})