···11import type { CancelReason, FileSpecification, Task } from '@vitest/runner'
22-import type { SerializedDiffOptions } from '@vitest/utils/diff'
32import type { BirpcReturn } from 'birpc'
43import type { EvaluatedModules } from 'vite/module-runner'
54import type { SerializedConfig } from '../runtime/config'
···8382 prepare: number
8483 }
8584 onFilterStackTrace?: (trace: string) => string
8686- diffOptions?: SerializedDiffOptions
8785}
···6262 ])
6363 testRunner.config.diffOptions = diffOptions
64646565- // Store diffOptions in the global worker state so they're accessible
6666- // to packages that can't directly import from @vitest/runner (e.g., @vitest/expect)
6767- const workerState = getWorkerState()
6868- workerState.diffOptions = diffOptions
6969-7065 // patch some methods, so custom runners don't need to call RPC
7166 const originalOnTaskUpdate = testRunner.onTaskUpdate
7267 testRunner.onTaskUpdate = async (task, events) => {