mirror of
https://github.com/vitest-dev/vitest.git
synced 2025-12-08 18:26:03 +00:00
20 lines
527 B
TypeScript
20 lines
527 B
TypeScript
import { test } from 'vitest'
|
|
|
|
// https://github.com/vitest-dev/vitest/issues/374
|
|
// Passing `Error` instances across message channels could cause the test runner to stall, if
|
|
// multiple tests fail. This suite is successful if it does not timeout, which is verified by the
|
|
// test runner.
|
|
|
|
test('test 1', () => {
|
|
throw new TypeError('failure')
|
|
})
|
|
test('test 2', () => {
|
|
throw new TypeError('failure')
|
|
})
|
|
test('test 3', () => {
|
|
throw new TypeError('failure')
|
|
})
|
|
test('test 4', () => {
|
|
throw new TypeError('failure')
|
|
})
|