···11+import { expect, test } from 'vitest'
22+import { covered } from './src'
33+44+test('first test exercises src so it should appear in coverage', () => {
55+ expect(covered()).toBe(42)
66+})
···11+import { test } from 'vitest'
22+33+test('the worker dies before sending testfileFinished', async () => {
44+ // SIGKILL the worker process so it can't send testfileFinished back to main.
55+ // Pre-fix this caused pool.run() to hang forever instead of rejecting.
66+ queueMicrotask(() => process.kill(process.pid, 'SIGKILL'))
77+ await new Promise(() => {})
88+})
···11+import { test } from 'vitest'
22+33+test('the worker dies before sending testfileFinished', async () => {
44+ // SIGKILL the worker process so it can't send testfileFinished back to main.
55+ // Pre-fix this caused pool.run() to hang forever instead of rejecting.
66+ queueMicrotask(() => process.kill(process.pid, 'SIGKILL'))
77+ await new Promise(() => {})
88+})