mirror of
https://github.com/hanzoai/vitest.git
synced 2026-09-24 17:04:25 +00:00
8 lines
277 B
TypeScript
8 lines
277 B
TypeScript
import { execSync } from 'node:child_process'
|
|
import { test } from 'vitest'
|
|
|
|
test('block whole test runner thread/process', { timeout: 30_000 }, async () => {
|
|
// Note that this can also block the RPC before onTestCaseReady is emitted to main thread
|
|
execSync("sleep 40")
|
|
})
|