// Vitest globals and jest-dom matcher types. Jest-dom is applied in setup-env.ts via // expect.extend(@testing-library/jest-dom/matchers). We use the package's own vitest // type augmentation (reference below) so we don't maintain a duplicate declare module. // Root cause: Vitest's expect.extend() (Chai-based) writes to Assertion in a way that // hits getter-only properties (e.g. nthCalledWith); the bug is in Vitest, not jest-dom. /// // eslint-disable-next-line @typescript-eslint/triple-slash-reference -- reference required so jest-dom's Assertion augmentation applies; import type does not ///