/** * Testing utilities for Ore components * * ⚠️ Requires DOM environment (browser / jsdom / happy-dom) * * This barrel re-exports the full testing API for convenience. * For tree-shaking, import directly from the focused sub-modules. */ export { OreTimeoutError } from '../errors'; export { walkFlatTree } from './dom'; export { debugFlush, type FlushOptions, flush } from './flush'; export { installFormInternalsPolyfill } from './form-internals-polyfill'; export { cleanup, type Fixture, type MountOptions, type MountSetup, mock, mount, mountComponent } from './mount'; export { type HookFixture, renderHook } from './render-hook'; export { resetOreForTests } from './reset'; export type InstallOptions = { /** * Polyfill the jsdom/happy-dom gaps in `ElementInternals`/`FormData`/`
.reset()` * that `useField()` needs (see `installFormInternalsPolyfill`). Global monkey-patches, * so opt in only when the suite tests form-associated components. * @default false */ formInternals?: boolean; }; /** * Register auto-cleanup after each test. Call once in your test setup file. * Pass `{ formInternals: true }` when testing form-associated (`useField`) components. * * @example * // vitest.setup.ts * import { afterEach } from 'vitest'; * import { install } from '@vielzeug/ore/testing'; * install(afterEach, { formInternals: true }); */ export declare function install(afterEachHook: (fn: () => void) => void, options?: InstallOptions): void; //# sourceMappingURL=index.d.ts.map