mirror of
https://github.com/hanzoai/vitest.git
synced 2026-09-24 17:04:25 +00:00
13 lines
269 B
TypeScript
13 lines
269 B
TypeScript
import { commands } from 'vitest/browser'
|
|
import { it } from 'vitest'
|
|
|
|
declare module 'vitest/browser' {
|
|
interface BrowserCommands {
|
|
forceCrash: () => Promise<void>
|
|
}
|
|
}
|
|
|
|
it('fails gracefully when browser crashes', async () => {
|
|
await commands.forceCrash()
|
|
})
|