scan(config: Config): Promise<SearchReport>
Scans the selected files and resolves which of their tests the current selection matches — no browser, no bundle, no execution.
import type { Config } from '../types.ts'; // Defined, not invoked: reads and parses every selected file. async function preview(config: Config) { const report = await scan(config); return `${report.matches.length} of ${report.total}`; }
config: Config
Promise<SearchReport>