mirror of
https://github.com/hanzoai/vitest.git
synced 2026-09-24 17:04:25 +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'))
|
|
})
|