/** * SMI-4315 + SMI-4316: hardening tests for pythonIncremental. * * SMI-4315 — `resolvePythonWasmPath` probes each candidate with * `fs.existsSync` instead of always returning `candidates[0]`. Regression * test for the package-local-fallback case. * * SMI-4316 — both silent catches now emit logger.warn. Tests verify: * - `parseSync` catch: rate-limited warn keyed per file; payload is * `{ file, error }` only with error truncated to <=200 chars and no * `stack` field (no source code leak). * - `doInit` catch: one-shot warn per parser instance on init failure. * * All SUT access goes through a dynamic `import('./pythonIncremental.js')` * inside the tests so the vi.mock calls below are applied even when vitest * shares its module cache with sibling test files in the same worker. * Mixing static `import { X } from './pythonIncremental.js'` with vi.mock * against the same module has been observed to bypass the mock when a * sibling test file imports the SUT first. */ export {}; //# sourceMappingURL=pythonIncremental.hardening.test.d.ts.map