mirror of
https://github.com/vitest-dev/vitest.git
synced 2025-12-08 18:26:03 +00:00
12 lines
396 B
TypeScript
12 lines
396 B
TypeScript
import { expect, test } from 'vitest'
|
|
import { runBrowserTests } from './utils'
|
|
|
|
test('fails gracefully when browser crashes', async () => {
|
|
const { stderr } = await runBrowserTests({
|
|
root: './fixtures/browser-crash',
|
|
reporters: [['verbose', { isTTY: false }]],
|
|
})
|
|
|
|
expect(stderr).toContain('Browser connection was closed while running tests. Was the page closed unexpectedly?')
|
|
})
|