// 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.
/// <reference types="vitest/globals" />

// eslint-disable-next-line @typescript-eslint/triple-slash-reference -- reference required so jest-dom's Assertion augmentation applies; import type does not
/// <reference path="../node_modules/@testing-library/jest-dom/types/vitest.d.ts" />
