mirror of
https://github.com/vitest-dev/vitest.git
synced 2025-12-08 18:26:03 +00:00
12 lines
241 B
TypeScript
12 lines
241 B
TypeScript
// @vitest-environment jsdom
|
|
|
|
import { expect, test } from 'vitest'
|
|
|
|
test('unhandled exception', () => {
|
|
expect(1).toBe(1)
|
|
addEventListener('custom', () => {
|
|
throw new Error('some error')
|
|
})
|
|
dispatchEvent(new Event('custom'))
|
|
})
|