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]>
8 lines
237 B
TypeScript
8 lines
237 B
TypeScript
import { test } from 'vitest'
|
|
import { page } from 'vitest/browser'
|
|
|
|
test('screenshot denied path', async () => {
|
|
// write is allowed, but the target is denied via `server.fs.deny`
|
|
await page.screenshot({ path: 'my-secret.png' })
|
|
})
|