mirror of
https://github.com/hanzoai/vitest.git
synced 2026-09-24 17:04:25 +00:00
8 lines
253 B
TypeScript
8 lines
253 B
TypeScript
import { test } from 'vitest'
|
|
|
|
test('the worker exits before sending testfileFinished', async () => {
|
|
// @ts-expect-error -- use reallyExit as Vitest patches process.exit
|
|
queueMicrotask(() => process.reallyExit(42))
|
|
await new Promise(() => {})
|
|
})
|